| View previous topic :: View next topic |
| Author |
Message |
Rolf
Joined: 07 Sep 2009 Posts: 22
|
Posted: Sat Oct 17, 2009 6:50 am Post subject: Exception in thread "main" java.lang.NoClassDefFou |
|
|
I don't seem to be able to make my java runnable.
I keep getting java.lang.NoClassDefFoundError error. I did make it successfully run (but failed to find map file) few times, but it suddenly stopped working again.
I have manfest file with text
Manifest-Version: 1.0
Main-Class: Main.RolfKye
Class-Path: lib/jig-1.7.5.jar
But it does not work, other than previously mentioned brief times.
I have couple issues…
How do I access file that was included inside jar? I want to include map file inside jar file and be able to run it.
How do I solve Exception in thread "main" java.lang.NoClassDefFoundError: jig/engine/hli/StaticScreenGame error when I try to run it now? |
|
| Back to top |
|
 |
Rolf
Joined: 07 Sep 2009 Posts: 22
|
Posted: Sat Oct 17, 2009 8:12 pm Post subject: |
|
|
For people having similiar issues but with properly configured manfest...
Add a newline. Make sure manfest file ends with line with nothing but newline.
I hate voodoo stuff like that.
I still can't make my program find its map data file but in least it runs. |
|
| Back to top |
|
 |
Rolf
Joined: 07 Sep 2009 Posts: 22
|
|
| Back to top |
|
 |
|