LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 08-02-2003, 11:40 PM   #1
spchehe
LQ Newbie
 
Registered: Jul 2003
Posts: 26

Rep: Reputation: 15
java, path not saved?


Hi

I've just installed java SDK 1.42 and set the path:
export PATH=$PATH:/opt/j2sdk_nb/j2sdk1.4.2/bin/ and it worked when I complied a program. But after I restarted my computer and checked the path: echo $PATH, the path was not there and "javac" wasn't recoginzed!? Can anyone tell me how to solve this?

Thanks
 
Old 08-02-2003, 11:48 PM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
add the export bit into your .bashrc,if you are using bash
ie in $HOME/.bashrc
 
Old 08-02-2003, 11:50 PM   #3
darin3200
Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Rep: Reputation: 45
put the path line in your /etc/profile
 
Old 08-03-2003, 12:02 AM   #4
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
well darin3200,if spchehe is just a regular user and has no administrative previlages,how do you think s/he is going to modify /etc/profile
 
Old 08-03-2003, 12:18 AM   #5
darin3200
Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Rep: Reputation: 45
I was assuming it was a personel computer.
 
  


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
Path to java mherring Linux - Software 1 05-04-2005 08:11 PM
path to jsp/java? chadi Linux - General 0 11-18-2004 10:17 PM
Problem getting PATH to go to Java VM chjade84 Linux - Newbie 3 04-02-2004 01:44 PM
Java can't find package, but PATH set correctly (j2se1.4.0, java.util.regex package) Ethan Programming 5 02-06-2004 10:55 PM
Setting the PATH for Java bruce64 Linux - Software 9 09-22-2003 12:19 PM


All times are GMT -5. The time now is 12:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration