1 Reply Latest reply: Sep 14, 2010 4:13 AM by 843810 RSS

    JAVA ENVIRONMENTAL VARIABLE AND PATH SETTINGS

    843810
      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..
        • 1. Re: JAVA ENVIRONMENTAL VARIABLE AND PATH SETTINGS
          843810
          dushdushyant wrote:
             
          
          ** 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
          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;
          Put the java home bin folder on the path before %SYSTEMROOT%\system32
          set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_03
          set PATH=%JAVA_HOME%\bin;%PATH%