Anyone here familiar with programming in Java2? I would like to start learning the language, so I went out, picked up a beginner's book, downloaded the SDK1.3.1, and now I am having problems setting it up to compile and run. What I've done is added a couple of lines in autoexec.bat like I'm supposed to do (that sets a PATH and CLASSPATH), but I still encounter error messages like this:
--When I type (at command prompt)
javac filename.java
-I get 'bad command or file name'.
--When I type
java filename
--or
java filename.java
-I get 'exception in thread "main" java.lang.NoClassDefFoundError: filename'.
I don't have any other java compiling programs to conflict with, and the path I set up in autoexec.bat leads to the folder where my source code is being saved. So I don't understand why the conflict is there. I'm using Win98SE.
Any suggestions?
--When I type (at command prompt)
javac filename.java
-I get 'bad command or file name'.
--When I type
java filename
--or
java filename.java
-I get 'exception in thread "main" java.lang.NoClassDefFoundError: filename'.
I don't have any other java compiling programs to conflict with, and the path I set up in autoexec.bat leads to the folder where my source code is being saved. So I don't understand why the conflict is there. I'm using Win98SE.
Any suggestions?