Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating jar executable w/ external jar (JXL) in ECLIPSE java

I can't find a working solution for my jar executable. The program runs perfect in my Eclipse IDE, but when I attempt to follow Eclipse instructions, the executable does not work with external JAR.

The JXL jar is in my build path. Anyone know how to get this working through Eclipse? I do not have access to command line.

like image 706
user3349184 Avatar asked Dec 31 '25 09:12

user3349184


1 Answers

1.) Right-click on project, select pop-up menu entry "Export...".

Pop-up menu -> Export

2.) Select "Java -> Runnable JAR file".

enter image description here

3.) Choose a working launch configuration for running your program via java -jar MyExecutable.jar from the command line later. Select an output folder and file name. Select "Package required libraries into generated JAR".

enter image description here

like image 123
kriegaex Avatar answered Jan 03 '26 05:01

kriegaex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!