
-----------------------------------
wtd
Thu Nov 17, 2005 5:54 pm

I'm stumped
-----------------------------------
My program compiles fine, but I get:

Exception in thread "main" java.lang.NoClassDefFoundError: Test

When I run it, and I can't see any of the usual causes of this problem.

public class Test {
   public static void main(String

-----------------------------------
beard0
Thu Nov 17, 2005 10:30 pm


-----------------------------------
Err... compiles and runs fine for me.  jdk1.5.0_05 & jre1.5.0_05

-----------------------------------
MysticVegeta
Thu Nov 17, 2005 10:46 pm


-----------------------------------
oh I get the same error, maybe I need to upgrade mine to jdk1.5

-----------------------------------
wtd
Thu Nov 17, 2005 10:47 pm


-----------------------------------
Err... compiles and runs fine for me.  jdk1.5.0_05 & jre1.5.0_05

Same here.

-----------------------------------
Hikaru79
Thu Nov 17, 2005 11:25 pm


-----------------------------------
Works fine here. If you're doing this in Windows, make sure you run it with java -cp . Test. The current directory isn't in the classpath by default. You can also set an environment variable to fix this if you don't want to set it every time.

-----------------------------------
wtd
Thu Nov 17, 2005 11:32 pm


-----------------------------------
Works fine here. If you're doing this in Windows, make sure you run it with java -cp . Test. The current directory isn't in the classpath by default. You can also set an environment variable to fix this if you don't want to set it every time.

Excellent.
