This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have saved my short test program in C:\java\MyClasses and set the CLASSPATH to this from command Prompt to make sure the java file can be found but still receive this error. Any ideas how I can remedy this?
You always need to compile a .java before it can run, regardless of size of the program. Java is not a normal interpreted language. It runs bytecode, and javac is needed to turn your .java files into .class files, which are interpreted by the JVM.
"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra