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. |
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.
|
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.