JClic bug fix in Debian

JClic is an old fashioned e-learning thing. You can install it from their webpage, but it also is in the Debian repository.

There are different versions of Java available. I use Oracle’s version using these instructions.

At the moment the file /usr/bin/jclic, and /usr/bin/jclicauthor don’t recognise oracle’s Java. Luisa Ravelli has reported it in Ubuntu. Debian is just a little different. It’s just a case of adding extra lines, as below:

if [ -z "$ALTERNATIVE" ]; then
t=/usr/lib/jvm/java-1.5.0-sun && test -d $t && JAVA_HOME=$t
t=/usr/lib/jvm/java-6-sun && test -d $t && JAVA_HOME=$t
t=/usr/lib/jvm/java-7-icedtea && test -d $t && JAVA_HOME=$t
JAVA=${JAVA_HOME}/jre/bin/java
fi
# lines added
if [ -z "$ALTERNATIVE" ]; then
t=/usr/lib/jvm/j2re1.7-oracle && test -d $t && JAVA_HOME=$t
JAVA=${JAVA_HOME}/bin/java
fi
# end added lines
fi

So, I post it here, so I may remember to figure out how to file a bug report. Or may come back here next time I need to fix it up.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s