You are not logged in.
I updated my system and moved to OpenJDK from the Oracle version and get the error:
/opt/java/bin/java: No such file or directory
Where should I look to fix this?
Last edited by kasbah (2011-08-29 21:06:58)
Offline
Try running this to reset the JAVA_HOME variable:
# source /etc/profile
Also, simply logging out and back in (or restarting) might fix it too.
EDIT: This should work too:
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
Last edited by doorknob60 (2011-08-29 21:03:29)
Offline
Ok yeah, I re-installed jre from AUR for now as I need to use some Java programs quickly. But that too had a problem and logging out and in was mentioned by pacman. I did that for now will probably replace with OpenJDK soon and update about the fix in this post.
Thanks for the quick reply.
EDIT: actually went back to openjdk right now as I seemed to be encountering some bugs with Java 7 and it was fine when re-installed. Never changed the env variable by hand.
EDIT2: scratch that, there were still some problems with the paths as it complained about permissions on a file that didn't exist anymore. Re-logged-in and everything is fine. The bugs that I saw in ganttproject program are gone too. Glad to be running fully FOSS Java now
Last edited by kasbah (2011-08-29 21:18:59)
Offline