Making jar executable w / external jar (JXL) in java ECLIPSE file

I cannot find a working solution for the jar executable. The program works fine in my Eclipse IDE, but when I try to follow the Eclipse instructions, the executable fails with the external JAR.

The JXL box is in my build path. Does anyone know how to get this to work through Eclipse? I have no command line access.

+3


source to share


1 answer


1.) Right-click the project, select the "Export ..." pop-up menu item.

Pop-up menu -> Export

2.) Select "Java → Runnable JAR file".



enter image description here

3.) Select a working run configuration to run your program through java -jar MyExecutable.jar

from the command line later. Select an output folder and file name. Select "Package required libraries in generated JAR".

enter image description here

+1


source







All Articles