.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Programming (http://forums.bots-united.com/forumdisplay.php?f=25)
-   -   Compiles fine, yet cant execute (http://forums.bots-united.com/showthread.php?t=1958)

Zacker 13-06-2004 15:10

Compiles fine, yet cant execute
 
My Java game compiles fine, but I get this error on run:

Exception in thread "main" java.lang.NoClassDefFoundError: Kamp
at Udforsk.<init>(Udforsk.java:11)
at Sted.<init>(Sted.java:17)
at ForgottenRealms.main(ForgottenRealms.java:29)
Press any key to continue...

Theese lines can be found respectively at the 3 line numbers:
Kamp kamp = new Kamp();
Udforsk udforsk = new Udforsk();
Sted sted = new Sted();

They have been there for weeks and I havent had any problems with them.

Cheeseh 13-06-2004 16:32

Re: Compiles fine, yet cant execute
 
There could be a problem inside one of those constructors? Java doesn't usually report problems explicitly within constructors.

botman 13-06-2004 19:33

Re: Compiles fine, yet cant execute
 
Have you tried running it with the Java Debugger (jdb)?

botman


All times are GMT +2. The time now is 18:10.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.