Reputation: 9745
I create a executable jar with eclips indigo and use a bat file to run it.
when I execute I get alle kind of exceptions.
NoClassDefFoundError, Could not initialize class, ....
No matter what selection I make for creating the executable jar I have issue's.
I used to made executable jar's with the plugin Fatjar but it seems it doens' work anymoren (plugin) with indigo.
It seems the jar is not including the file's (logging and other prop file's) I include in a different folder in the project ?!
Any suggestions ... .
I get the following error-codes :
My structure is :
I tried using the Fatjar plugin and now I don't have a NoClassDefFoundError anymore but further down in my programm I get the next error :
Upvotes: 1
Views: 776
Reputation: 33544
Try this, this is the way to create a jar or runnable jar in eclipse
File -> Export-> Java ->Runnbale JAR file
Launch configuration : your Class containing the public static void main(String[] args)
Export destination : Target place
Library Handling:
Package required libraries into generated JAR
FINISH
Upvotes: 1