my path for javac is set to C:\Program Files\Java\jdk1.7.0\bin which is the default. I wrote out the Hello world program from my new book. its path is c:\document and settings\user\My Documents\myJavaPgms I cannot get the javac to run the file. Any guesses?
I tried it both of these ways....
C:\Documents and Settings\user>cd my documents\myJavaPgms
C:\Documents and Settings\user\My Documents\myJavaPgms>javac Hello.java
Error: Could not find or load main class com.sun.tools.javac.Main
C:\Documents and Settings\user\My Documents\myJavaPgms>cd C:\Program Files\Java\
jdk1.7.0\bin
C:\Program Files\Java\jdk1.7.0\bin>javac Hello.java
javac: file not found: Hello.java
Usage: javac <options> <source files>
use -help for a list of possible options