Originally posted by krishna prasad gunasekaran:
my environment variable is set to C:\Program Files\Java\jdk1.5.0_05.
Which environment variable? There are many environment variables on your system. Do you mean JAVA_HOME?
Output is D:\Program Files\IBM-AppClient\java\jre
but this path is my jboss's installed jre's path.
what about the JAVA_HOME given in environment variable. shouldn't it be displayed?
The environment variable JAVA_HOME does not determine which version of
Java is used. In fact, JAVA_HOME is not used at all by Java (some third-party programs use it to find where the JRE is).
Instead of setting JAVA_HOME,
you should add the bin directory of the JRE you want to use to the PATH environment variable.