Skip to content

Fixing CrashPlan (in the presence of native JDK/JRE)

I recently installed subsonic, which has a Java dependency. The www/subsonic port installed Java.

Unfortunately, this (or something else I did) broke CrashPlan (which uses the Linux Java in the java/linux-sun-jre16 port).

I had to take a few unexpected steps to fix this.

Namely:

Re-install linux-sun-jre16

I’m not sure if this was necessary, but I did it to make sure that the Linux Java didn’t get over-written by the native Java. It didn’t. Linux Java installs in a different directory (see below).

Link the linux java to the Linux compat directories

The Linux Java gets installed in /usr/local/linux-sun-jre1.6/. However, the /compat/linux/bin/bash shell will pick up the native java. I have no idea how this all worked before I installed native Java, but I linked all the java files to the compat linux bin directory:

ln -s /usr/local/linux-sun-jre1.6/bin/* /usr/compat/linux/usr/local/bin

Fix up Java class paths

For whatever reason, CrashPlan would start at this point but would not be able to load jtux. I added the following to the CrashPlanEngine script (in /usr/compat/linux/usr/local/crashplan/bin):

FULL_CP=”${TARGETDIR}:${TARGETDIR}/lib/com.backup42.desktop.jar:${TARGETDIR}/lang”

Basically, it was missing the direct /lib directory. Again, I’m not sure why this wasn’t a problem before.

Be the first to like.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*