I have the file name "first.java" saved on my desktop in notepad ++. When I run cmd command "javac first.java", it gives me this error.
javac: file not found: first.java
Usage: javac <options> <source files>
I know you need to go to C: \ Programfiles \ java \ jdk.
and in my C: \ Program Files \ Java \ I have these folders
"Jdk1.8.0" "Jre6" "Jre8"
In C: \ Program Files (x86) \ Java I have this folder
"Jre6"
Environment Settings:
CLASSPATH
C: \ Program Files \ Java \ jre8 \ bin
Variable Name: LEJOS_NXT_JAVA_HOME Variable
Value: C: \ Program Files (x86) \ Java \ jdk1.6.0_21 \ bin
: PATH
: C:\Program Files\Java\jdk1.8.0\bin
, , . , .