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 |
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. |
All times are GMT -5. The time now is 09:51 PM. |