I am trying to find the JAVA_HOME path

37,520

On windows, right-click "my computer" and choose "properties.
Go to: "advanced system settings" and then to "environment variables":

enter image description here

Then go over the variables and set %JAVA_HOME%:

enter image description here

like this:

enter image description here

Here's another helpful link

Share:
37,520

Related videos on Youtube

slickery89
Author by

slickery89

Just a little newbie programmer trying to make her websites work.. Nothing special but eager to learn!

Updated on July 09, 2022

Comments

  • slickery89
    slickery89 almost 2 years

    I ran echo %JAVA_HOME% to find my path. I know it is the wrong path but I am not sure how to fix it. Any help would be appreciated.

    C:\Users\Cynthia>echo %JAVA_HOME%
    C:\Program Files\Java\jdk1.6.0_33\C:\Program Files\Java\jdk1.0.60_33\C:\Program Files\Java\jdk1.0.60_33\%JAVA_HOME%\bin\bin\bin
    
    C:\Users\Cynthia>
    
  • slickery89
    slickery89 almost 12 years
    @alfasin or davidfransis I'm confused again? Do not put the % in the user variable or the system variable. How do I attach a file for you to see mmy variables?
  • Nir Alfasi
    Nir Alfasi almost 12 years
    in the question body, use the image icon in order to upload a picture.
  • slickery89
    slickery89 almost 12 years
    I made the changes but in the image you see that it caznnot find JAVA_HOME I need this for RED5
  • Nir Alfasi
    Nir Alfasi almost 12 years
    Try adding the path to "jave home" in the PATH variable (separated by semicolon ;)
  • slickery89
    slickery89 almost 12 years
    This is my path now C:\Program Files\Java\jdk1.6.0_33\bin\C:\Windows\system32;C:\Windows;C:‌​\Windows\System32\Wb‌​em;C:\Program Files\ANT\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\QuickTime\QTSystem\
  • Nir Alfasi
    Nir Alfasi almost 12 years
    looks fine, I would add C:\Program Files\Java\jdk1.6.0_33 (without the bin) too.
  • slickery89
    slickery89 almost 12 years
    I added as you suggested, on my cmd line I type %JAVA_HOME% C:\Program is not recognized as an internal or external command, operable program or batch file or JAVA_HOME get returned 'JAVA_HOME is not recognized as an internal or external command, operable program or batch file. Please advise
  • Nir Alfasi
    Nir Alfasi almost 12 years
    @slickery89 create a new file in notepad: line 1 @ECHO off and line 2: echo %JAVA_HOME% save it as 1.bat and run it from command prompt
  • slickery89
    slickery89 almost 12 years
    results When I execute command prompt I'm presented with C:\Users\Cynthia doesn't recognize my 1.bat then I cd C:\1.bat I get C:\Program Files\Java
  • Nir Alfasi
    Nir Alfasi almost 12 years
    run cd c: and only then run 1.bat
  • slickery89
    slickery89 almost 12 years
    cd c: takes me to C:\Users\Cynthia then run 1.bat not recognized
  • Nir Alfasi
    Nir Alfasi almost 12 years
    @slickery89 run cd c:\ and then 1.bat
  • slickery89
    slickery89 almost 12 years
    @alfasin I cd C:/ then at C:\1.bat then it returns on the next line C:\Program Files\Java
  • Nir Alfasi
    Nir Alfasi almost 12 years
    right, and that shows you that JAVA_HOME variable is defined!
  • Nir Alfasi
    Nir Alfasi almost 12 years
    btw, if you manually run from prompt: echo %JAVA_HOME% you should also get: C:\Program Files\Java