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?

5th Apr 2017, 3:27 AM
dpool741
dpool741 - avatar
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
16th Apr 2017, 3:46 AM
Nilanjan Nath
Nilanjan Nath - avatar
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
5th Apr 2017, 12:01 PM
Mayank Bhutani
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.
6th Apr 2017, 12:10 AM
dpool741
dpool741 - avatar
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.
6th Apr 2017, 4:54 AM
dpool741
dpool741 - avatar