0
Java Path Not in CMD
I seem to have properly entered the path and saved it, but when I enter the Javac command it doesn't properly show the screen how it should be. Does anyone know how to fix this?
4 Answers
+ 1
What worked for me
1. In Java folder I searched for javac.exe
2. Copied the path
3. Added the path as Environment Variable e.g. C:\Program Files\Java\jdk...\bin
4. Executed in cmd prompt C:\Program Files\Java\jdk...\bin\javac.exe
5. It worked; Closed cmd prompt
6. Directly used in C:\; It worked
0
First check If Java command is working or not by typing only Java in cmd .If no, then install jdk and jre.
if yes, then, type this in cmd
"setPath=C:\Program Files\Java\jdk1.6.0_23\bin"
or where your bin folder is located.
It should work then.
P.S. remove "" :-P
0
Here is what I've done so far:
1: Checked using the "Java" command in CMD, worked fine.
2: Reinstalled the JDK.
3: Readded the PATH as "C:\Program Files\Java\jdk1.8.0_121" as this is what the path to the folder is. I had went to it and copied and pasted it for the PATH.
4: Checked if "Javac/javac/JAVAC/JavaC" Command(s) is working. It wasn't.
5: Checked if "Java/java" Command(s) is working. It no longer is.
I am unsure as to what I should do at this point besides just uninstalling and reinstalling Java entirely.
0
Okay, so I figured out that I'm just stupid after looking through this for way too long. I did not include the \bin when pasting it.