Announcement

Collapse
No announcement yet.

JAVA-HOME does not home..

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • JAVA-HOME does not home..

    I am kind of surprised that while PATH displays the content of the variable, typing JAVA_HOME does not, is this some weird behaviour in Windows?

    I have Windows Server version SP 2.

    C:\Windows;C:\Windows\System32\Wbem;C:\Windows\Sys tem32\Windo
    wsPowerShell\v1.0\; C:\Program Files\Java\jdk1.8.0_20\bin\;C:
    \Program Files\MySQL\MySQL Server 5.5\bin

    >JAVA_HOME
    'JAVA_HOME' is not recognized as an internal or external comm
    and,
    operable program or batch file.

    >

    When checking through the UI, System Environment Variables the following values are indicated:
    Variable Value
    JAVA_HOME C:\Program Files\Java\jdk1.7.0_51\bin - User variable for administrator
    JAVA_HOME C:\Program Files\Java\jdk1.7.0_51\bin - System variable

    The path seems to contain the usual java executables, however, later version of Java are installed, and, I have not quite updated the environment variables to point to C:\Program Files\Java\jre1.8.0_25\bin as yet.


  • #2
    Re: JAVA-HOME does not home..

    Originally posted by jon80 View Post
    I am kind of surprised that while PATH displays the content of the variable, typing JAVA_HOME does not, is this some weird behaviour in Windows?

    I have Windows Server version SP 2.

    C:\Windows;C:\Windows\System32\Wbem;C:\Windows\Sys tem32\Windo
    wsPowerShell\v1.0\; C:\Program Files\Java\jdk1.8.0_20\bin\;C:
    \Program Files\MySQL\MySQL Server 5.5\bin

    >JAVA_HOME
    'JAVA_HOME' is not recognized as an internal or external comm
    and,
    operable program or batch file.

    >

    When checking through the UI, System Environment Variables the following values are indicated:
    Variable Value
    JAVA_HOME C:\Program Files\Java\jdk1.7.0_51\bin - User variable for administrator
    JAVA_HOME C:\Program Files\Java\jdk1.7.0_51\bin - System variable

    The path seems to contain the usual java executables, however, later version of Java are installed, and, I have not quite updated the environment variables to point to C:\Program Files\Java\jre1.8.0_25\bin as yet.

    Shouldn't you be using %JAVA_HOME%??

    Comment


    • #3
      Re: JAVA-HOME does not home..

      Environment variables are recognised when enclosed by %....%
      A recent poll suggests that 6 out of 7 dwarfs are not happy

      Comment

      Working...
      X