Setting java path for normal user
Good afternoon everyone,
I have set java up as a root user and have run some simple java programs. However, when I return to a regular user I can no longer run java programs. Where should I set the path? I know I am supposed to edit the bash profile but I'm not sure where in the file I should put the information. Thanks in advance for your replies!
Put a file named java.sh that sets the
paths into /etc/profile.d
in your .bash_profile file add the following lines
** NOTE: the following assumes that Java is installed in /usr/local/j2sdk1.4 **
export JAVA_HOME PATH CLASSPATH
if java is installed somewhere other than /usr/local/j2sdk1.4 simply change the value of JAVA_HOME
after you make these changes to .bash_profile logout and log back in. problem should be solved.
|All times are GMT -5. The time now is 10:37 PM.|