fix for chatty when there is oracle & openjdk installed on the machine
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GetDeb Software Portal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello,
there is a problem with the chatty package.
if you have several java-8 installed, (openjdk & oracle) it won't run.
in a terminal, the message is (sorry in french) :
"Erreur : impossible de trouver ou charger la classe principale .usr.lib.
the problem is in the script that launch chatty, in debian/
JAVA_BIN=
this line check if there is java-8 on the machine
the pblm when you have oracle & openjdk installed, it will return :
/usr/lib/
/usr/lib/
which won't affect a value to $JAVA_BIN
my fix is to check if there is at least, one java-8 installed, and start chatty
#!/bin/sh
# crashes on Java 9
if [ "$(update-
then
cd /usr/share/chatty
java -jar chatty.jar "$@"
else
echo "java-8 not installed, can't start chatty"
exit
fi
Thanks for notifying me.
Fixed it a little different to make sure chatty is started with Java 8.