How to get current jar path

L

loris_p

Hi! I'm working on an application that should run on an usb pen using
an embedded Derby DB. I need the DB to be on the USB pendrive with the
application.
Pen filesystem should look like this:

/
- application/
- application.jar
- lib/
- embeddedDB

using "user.dir" system property i get the path from where the jar has
been launched, while I need the path where the jar is. How can I do?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top