LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2004, 09:54 PM   #1
Madaize
LQ Newbie
 
Registered: Nov 2004
Distribution: Red Hat 9
Posts: 1

Rep: Reputation: 0
locating and edition .profile for java paths


im having problems setting up paths and classpaths for the jdk (java devopment kit for those who dont know) and any external classes (such as SavitchIn <- external class file whcih allows n00bies to take input from the user without manually configuring the IOStrings....)

anywho... i know that i need to do the following for setting up of the java paths/classpaths:
Code:
export JAVA_HOME=/usr/java/jdk1.5.0
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$CLASSPATH:$JAVA_HOME/externalclass:.
plz correct me if its wrong...
anywho, when i do it @ the terminal, it works like a charm... including the external SavitchIn.class

the problem is that i do not know how to make the env changes permanent...
when i reboot my *nix box, the env settings reset to the defaults...

i have read from other sites that u need to change the .profile file located in the user's home, but i cannot find it there... please can someone walk me throught how to do this...

or at the very least, provide me with a link to a working webpage with instructions?

thanks...

Matthew Daize
m_daize@yahoo.ca
 
Old 11-06-2004, 11:41 PM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Simply add the lines you have posted above to either one of ~/.profile, ~/.bash_profile or ~/.bashrc.

These files are hidden (The dot means they are hidden) but may not exist, you can list all files a directory using "ls -a". If they dont exist, simply create one of them using any text editor.

When you have made the changes, use the command "source .profile" (assuming you are using .profile). You should now see the changes reflected when you enter the command "printenv". Now the changes will be made each time you log in.

--Ian
 
  


Reply



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
locating java install on FC3 eagle63 Linux - Newbie 1 09-18-2005 07:09 AM
Which edition of JAVA to use? usernameddr Mandriva 1 01-21-2005 05:51 PM
relative/absolute paths in Java djgerbavore Programming 2 10-26-2004 08:01 PM
How do you set up links or paths in LINUX? Mandrake 9.2 Java VM Ygarl Linux - Newbie 4 03-29-2004 03:00 PM
question on paths and profile files bignester Linux - General 3 08-07-2003 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:55 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