SharpProgrammer.Com

Computer Programming Productivity Tips, Tricks



Links
Monday, May 14, 2007


Setting JAVA_HOME variable in Windows XP, Unix and Linux
Setting JAVA_HOME variable in Windows XP, Unix and Linux

If you are on windows, get a command prompt and type:

echo %JAVA_HOME%


That way you can verify that it is set properly.


JAVA_HOME is the directory where u have installed JDK.

If u have installed it in say directly under the root in "C" drive

then set the variable JAVA_HOME to C:\j2sdk1.4.2_10 or whatever u r using....

U can either set it from the dos prompt or else right click MyComputer Icon on the

desktop-->Properties-->Advanced--->Environmental Variables--->System variables-->JAVA_HOME..



set the value to C:\C:\j2sdk1.4.2_10


In linux

Put the path in .profile e.g.

export JAVA_HOME=/usr/java/j2sdk1.4.2.08/bin


then the java home path will set


Setting path to the bin directory lets you invoke the java tools (javac, java etc etc) from anywhere in the system.
JAVA_HOME is for other applications to find the java libraries - not the java executables.

Setting JAVA_HOME variable in Windows XP, Unix and Linux
posted by PNM @ 5:47 AM  
0 Comments:
Post a Comment
<< Home
 
Interesting Posts