Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Retrive the app path (where the app is,not the current working dir!)

807606Apr 30 2007 — edited Jun 5 2007
Hi, I'm spending too much time on a stupid problem. I need to retrive the application path: this is where my .jar/.class program is saved on the disk.

Someone in this forum suggests to use
System.getProperty("user.dir")
but please note that this retrive the current working directory and not the application path!

In other words, I'm looking for an equivalent of Visual Basic App.Path.

Many thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2007
Added on Apr 30 2007
28 comments
308 views