How to add endorsed directory to runnable jar

592 Views Asked by At

I am using endorsed directory for some jar which can be used from command line. Now I want to make jar as runnable with endorsed directory so that user can just click the runnable jar file to run the application.

I am using Eclipse Helios and Java 6.

Can anyone tell me how to do the above mentioned task.

Regards, Ashish

1

There are 1 best solutions below

3
Makky On

From Eclipse

  • Right Click the project and select "Export"
  • Select Runnable JAR File
  • Select output direct
  • Press Next
  • Press Next
  • Press Finish

Once it is exported it ,let say in C:\

Run Command prompt and change it to c: and run

java -jar XXXX.jar

thats it.

Packaging JAR as EXE.

Download Launch4J here.

Screenshots

Click here