I'm just starting with Java programming (with "Teach Yourself Java 6 in 21 Days", but I'm stumped at the beginning. It won't let me run any java files!
I know my classpath is set incorrectly, but what do I need to set it to?
I have the JDK installing in "C:\Program Files (x86)\Java\jdk1.6.0_21" and the JRE installed in "C:\Program Files (x86)\Java\jre6". But every path I try it gives me an error: "Could not find the main class". Using the command 'java <file name>" What do I do? I have tried setting to the lib directories of both, but no dice. Please help. I'm running the 'java' command from the jdk's bin directory. I also have the JDK's 'bin' directory in my path.
I have no prior knowledge of programming, BTW.
After finishing that book, I'm going to start "Beginning Android 2"
I know my classpath is set incorrectly, but what do I need to set it to?
I have the JDK installing in "C:\Program Files (x86)\Java\jdk1.6.0_21" and the JRE installed in "C:\Program Files (x86)\Java\jre6". But every path I try it gives me an error: "Could not find the main class". Using the command 'java <file name>" What do I do? I have tried setting to the lib directories of both, but no dice. Please help. I'm running the 'java' command from the jdk's bin directory. I also have the JDK's 'bin' directory in my path.
I have no prior knowledge of programming, BTW.
After finishing that book, I'm going to start "Beginning Android 2"