LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 08-16-2008, 02:27 PM   #1
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Rep: Reputation: 31
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
 
Old 08-16-2008, 02:56 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
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/

Last edited by paulsm4; 08-16-2008 at 02:59 PM.
 
Old 08-16-2008, 03:10 PM   #3
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by paulsm4 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 7.10 64bit - how to set java path to/redirect java to libjvm.so ? Thane Ubuntu 1 03-25-2008 05:52 PM
Cannot set the path for java jgoggel Programming 2 07-23-2004 06:31 AM
Java can't find package, but PATH set correctly (j2se1.4.0, java.util.regex package) Ethan Programming 5 02-06-2004 09:55 PM
Please help! I still can not set JAVA path preswang Linux - Software 9 11-01-2003 08:51 PM
how to rum java on linux and set path for the same mita_majumdar Linux - Newbie 2 06-02-2003 12:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration