javac: file not found: Usage: javac

I have a filename named “” saved on my desktop in notepad++. When I run the cmd command “javac” it gives me this error.

javac: file not found: 
Usage: javac <options> <source files>

I know you are required 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

The Environmental settings are as follows

C:\Program Files\Java\jre8\bin
Variable name: LEJOS_NXT_JAVA_HOME
Variable value: C:\Program Files (x86)\Java\jdk1.6.0_21\bin

Variable name: PATH
Variable value: C:\Program Files\Java\jdk1.8.0\bin

Please tell me where I am going wrong. I have read several posts on the Internet, and I can’t figure it out.

Leave a Comment