Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-17-2001, 05:45 PM   #1
LQ Newbie
Registered: Sep 2001
Distribution: Red Hat 7.2
Posts: 8

Rep: Reputation: 0
java sdk and $PATH


i've installed the the java sdk version 1.3 on my machine. The sdk was installed via a RPM and the files were installed in the directory /usr/local/java. I wanted to make the software availible to all the accounts on the system. How would i do this? I tried to adjust the $PATH variable to include the directory /usr/local/java/bin which holds all the executables i would need. This obviously only works for one account, and in fact for some reason the $PATH would reset itself after a short while to its previous state.

i solved the problem by creating links to all the executables in /usr/local/bin. I know there's a more intelligent solution..

thank you,
Old 10-18-2001, 03:30 PM   #2
Registered: Sep 2001
Location: Romania, Timisoara
Distribution: Ubuntu 5.04
Posts: 49

Rep: Reputation: 15

Modify your /etc/profile :

PATH variable or and the better solutin is to add there a variable called JAVA_HOME="/usr/local/java/bin" .

Remeber to add that variables to EXPORT line in /etc/profile .
After you modify that file just logout and login again ... all changes will be active after login.

try then echo $PATH or echo $JAVA_HOME and see if that variable content includes /usr/local/java/bin.

For other users try to set permissions "r" and "x" to /usr/local/java/bin , after that they will be able to run java.



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
Why There is no Java 2 SDK ? JOKe Debian 5 03-08-2005 03:37 PM
Java SDK Peleus Linux - Newbie 2 04-06-2004 09:31 AM
Java sdk PATH adflynn Programming 3 03-03-2004 10:01 AM
Java SDK adflynn Programming 2 02-03-2004 08:15 PM
java sdk lsansan Linux - Software 1 05-11-2003 01:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:51 PM.

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