Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAVA ENVIRONMENTAL VARIABLE AND PATH SETTINGS

843810Sep 14 2010 — edited Sep 14 2010
Hi all,
I am having a pecuilar problem with java environment variables and setting the path.

I am trying to install and check the instalation using some pre-provided batch commands from Open GTS.

The error log is as below .
   

** Found 2 Error(s)!
********************************************************************************
*****
1) The 'PATH' environment variable points to the JRE, rather than the JDK.
   [Reason: The 'PATH' environment variable points to the JRE (Java Runtime
     Environment), rather than the JDK (Java Developer Kit).  The JDK already
     contains the JRE, so a separate JRE insallation  is not necessary.]
   [Fix: Set the 'PATH' environment variable to point to the JDK installation bi
n
     directory.]
2) 'JAVA_HOME' does not match the Java installation 'PATH' directory 'C:\Program
 Files\Java\jre6'.
   [Reason: The version of Java referenced in the executable 'PATH' environment

     variable does not match 'JAVA_HOME'.]
   [Fix: Make sure both the 'JAVA_HOME' and 'PATH' environment variables point t
o the
     same installed JDK.]
********************************************************************************
*****
No warnings reported
 
Further more these may help understand better
C:\Dush\Workspaces\JavaWorkspace\OpenGTS>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_03

C:\Dush\Workspaces\JavaWorkspace\OpenGTS>path
PATH=C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C
:\WINDOWS\System32\Wbem;C:\Program Files\apache-ant-1.7.0\bin;C:\Program Files\J
ava\jdk1.6.0_03\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Dush\Workspac
es\JavaWorkspace\OpenGTS\bin;

C:\Dush\Workspaces\JavaWorkspace\OpenGTS>
The resolution suggests that the path point to the same instance of jdk installation but that has already been done,

I do not understand from where does the
C:\Program Files\Java\jre6 path get set.

Please suggest..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 12 2010
Added on Sep 14 2010
1 comment
4,145 views