In using javac, I have installed the JDK, set the PATH and JAVA_HOME. When I run this:
"C:\Program Files\Java\jdk1.8.0_40\bin\javac" -cp C:\G\j_javac\HTMLCarbonResults.java
I get: javac: no source files
Since I placed the source file path in the command line, I don't understand why it can't find the one .java file.
javac needs to know the source file it should act on. "-cp" is used to add to the classpath. If your source file doesn't need external libraries, just drop the "-cp".
All things are lawful, but not all things are profitable.