You are not logged in.

#1 2010-06-15 11:45:54

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

[SOLVED] jGnash and $JAVA_HOME

I ran into an issue right after installing jgnash and jre. I couldn't run it without logout and in again and wanted to share a solution with the community. Maybe it is also a bug, but not sure.

Running jgnash right after install

$ jgnash
/usr/bin/jgnash: line 5: /bin/java: No such file or directory
/usr/bin/jgnash: line 5: exec: /bin/java: cannot execute: No such file or directory

Find the problem:

$ grep /bin/java /usr/bin/jgnash 
exec $JAVA_HOME/bin/java -cp $CP -jar /usr/share/java/jgnash/jgnash-1.12.0.jar

Solve the problem:

$ JAVA_HOME=/opt/java/jre
$ export JAVA_HOME
$ jgnash

Also notice that the java runtime isn't in $PATH

Offline

Board footer

Powered by FluxBB