LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Suse/Novell (http://www.linuxquestions.org/questions/suse-novell-60/)
-   -   Updating Java: Can't find where to set Path, Can't find old Java! (http://www.linuxquestions.org/questions/suse-novell-60/updating-java-cant-find-where-to-set-path-cant-find-old-java-663266/)

davidstvz 08-16-2008 03:27 PM

Updating Java: Can't find where to set Path, Can't find old Java!
 
I had a thread about this on the n00b forum, but maybe this is too Suse specific for the guys hanging out there.

I installed jdk 1.6.7 (it's in /usr/java/jdk1.6.0_07/), however, when I run java, it's still the old version 1.4.2. I need to update the path.

Hilariously, I can't find where to do this, and I can't even find where the java 1.4.2 is installed. Unless it was in the /usr/java/jdk1.4*/ and it's somehow still running in memory. I didn't think java would constantly run though as you invoke the VM individually and such.

I was thinking I need to update the path for every user on the system not just an individual. However, now I'm wondering if instructors shouldn't be telling students how to set their own damned paths!

Anyway, I'd like to do it myself if it can be done. And it's not vital that I find jdk1.4* I just need to change the path. I am curious about where it's hiding though :)

paulsm4 08-16-2008 03:56 PM

Hi -

Short answer:
Add "/usr/java/jdk1.6.0_07/bin" to PATH in your /etc/profile (globally), or your $HOME/.bash_profile (for just your logon). You can also define JAVA_HOME in either/both of the same files.

Longer answer:
Here are some links that might help:
http://www.linux-mag.com/id/803
http://www.cyberciti.biz/faq/howto-u...igure-jdk-jre/

davidstvz 08-16-2008 04:10 PM

Quote:

Originally Posted by paulsm4 (Post 3249939)
Hi -

Short answer:
Add "/usr/java/jdk1.6.0_07/bin" to PATH in your /etc/profile (globally), or your $HOME/.bash_profile (for just your logon). You can also define JAVA_HOME in either/both of the same files.

Longer answer:
Here are some links that might help:
http://www.linux-mag.com/id/803
http://www.cyberciti.biz/faq/howto-u...igure-jdk-jre/

Thanks. I'm finally getting somewhere with this.


All times are GMT -5. The time now is 04:02 AM.