You are not logged in.

#1 2011-08-29 20:58:16

kasbah
Member
Registered: 2009-08-13
Posts: 30

[SOLVED] error after moving to OpenJDK

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

#2 2011-08-29 21:02:12

doorknob60
Member
Registered: 2008-09-29
Posts: 403

Re: [SOLVED] error after moving to OpenJDK

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

#3 2011-08-29 21:06:39

kasbah
Member
Registered: 2009-08-13
Posts: 30

Re: [SOLVED] error after moving to OpenJDK

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 smile

Last edited by kasbah (2011-08-29 21:18:59)

Offline

Board footer

Powered by FluxBB