LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-17-2001, 04:45 PM   #1
mxr
LQ Newbie
 
Registered: Sep 2001
Distribution: Red Hat 7.2
Posts: 8

Rep: Reputation: 0
java sdk and $PATH


hello,

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,
mXr
 
Old 10-18-2001, 02:30 PM   #2
adirotaru
Member
 
Registered: Sep 2001
Location: Romania, Timisoara
Distribution: Ubuntu 5.04
Posts: 49

Rep: Reputation: 15
profile...

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.

Regards.
 
  


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


All times are GMT -5. The time now is 08:10 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration