Jclic hangs on exit with openjdk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jclic (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
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
sudo apt-get update
sudo apt-get install oracle-
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/alternativ
if [ -z "$ALTERNATIVE" ]; then
ALTERNATIVE=`ls -l /etc/alternativ
fi
if [ -z "$ALTERNATIVE" ]; then
fi
# lines added
if [ -z "$ALTERNATIVE" ]; then
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?
Status changed to 'Confirmed' because the bug affects multiple users.