Public bug reported:

In every Ubuntu version from 10.04 to 12.04, tried on several machines.

Package installed:
* jclic
* openjdk

Jclic works perfectly until I try to close it, the application hangs and
the only way to terminate it is going on a terminal and kill the java
process.


Workaround until 12.04:

Installing the sun-java6-jdk and with update-alternatives make it the
default jdk


Workaround modification in 12.04:

Since the sun jre is no longer distributable with Ubuntu, I had to install the 
Oracle jdk.
I decide to use a ppa to mantain the package updated easily so I use these 
commands:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
The script also provide to make the new jdk the default one.
When launching jclic nothing happens so I launch it from a terminal and I 
discovered that it couldn't find the jdk because it was searching it in the 
wrong path (error in line 36).

So I had to modify the script /usr/bin/jclic this way:

if [ -z $JAVA_HOME ] ; then
        ALTERNATIVE=`ls -l /etc/alternatives/java|grep sun`
        if [ -z "$ALTERNATIVE" ]; then
                ALTERNATIVE=`ls -l /etc/alternatives/java|grep openjdk`
        fi
        
        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/java-7-oracle && test -d $t && JAVA_HOME=$t
                JAVA=${JAVA_HOME}/jre/java
        fi
# end added lines
        fi

Now Jclic works fine but I know that an update will remove my lines, is
it possibile to fix jclic to work with openjdk or to link the correct
path for java-7-oracle?

** Affects: jclic (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1002280

Title:
  Jclic hangs on exit with openjdk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/jclic/+bug/1002280/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to