Originally posted by Luke Thomson: Hi, I am a complete beginner to Java and I have already got stuck without even looking at a bit of code.
I am having trouble setting up JDK on Windows Vista. I keep getting the following error: Exception in thread "main" java.lang.NoClassDefFoundError
I can compile the code into a source file but get the error message when trying to run the program.
I installed JDK to the default location. I have set the classpath to: .;c:\program files\java\jdk1.6.0_01\lib\tools.jar
The path is set to: c:\program files\java\jdk1.6.0_01\bin
Could anyone tell me what I am doing wrong, I just want to get started.
Thanks in advance, Luke
try removing that c:\program files\java\jdk1.6.0_01\lib\tools.jar and see if that works. remember, you have to close the shell and reopen a new after schanging the system variables if not doen from the command line.
Scooby Snacks for everyone...<br /> <br />SCJA, SCJP 1.4