Darth Blue Ray
Darth Blue Ray

Reputation: 9745

java eclipse indigo problems executing executable jar (property file's in external folder in project)

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 :

enter image description here

My structure is :

enter image description here


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 :

enter image description here

Upvotes: 1

Views: 776

Answers (1)

Kumar Vivek Mitra
Kumar Vivek Mitra

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

Related Questions