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":
Then go over the variables and set %JAVA_HOME%:
like this:
Here's another helpful link
Related videos on Youtube
Author by
slickery89
Just a little newbie programmer trying to make her websites work.. Nothing special but eager to learn!
Updated on July 09, 2022Comments
-
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 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 almost 12 yearsin the question body, use the image icon in order to upload a picture.
-
slickery89 almost 12 yearsI made the changes but in the image you see that it caznnot find JAVA_HOME I need this for RED5
-
Nir Alfasi almost 12 yearsTry adding the path to "jave home" in the
PATH
variable (separated by semicolon;
) -
slickery89 almost 12 yearsThis is my path now C:\Program Files\Java\jdk1.6.0_33\bin\C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\ANT\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\QuickTime\QTSystem\
-
Nir Alfasi almost 12 yearslooks fine, I would add
C:\Program Files\Java\jdk1.6.0_33
(without thebin
) too. -
slickery89 almost 12 yearsI 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 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 almost 12 yearsresults 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 almost 12 yearsrun
cd c:
and only then run1.bat
-
slickery89 almost 12 yearscd c: takes me to C:\Users\Cynthia then run 1.bat not recognized
-
Nir Alfasi almost 12 years@slickery89 run
cd c:\
and then1.bat
-
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 almost 12 yearsright, and that shows you that JAVA_HOME variable is defined!
-
Nir Alfasi almost 12 yearsbtw, if you manually run from prompt:
echo %JAVA_HOME%
you should also get:C:\Program Files\Java