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!

Working directory for a Java program?

807605Jun 18 2007 — edited Jun 19 2007
I have a Swing app which uses a text file for saving/loading configuration options.

I can load/save just fine when I launch the program from the IDE -- but when I copy the JAR file (in the DIST folder) to a given location and run it there, it seems to be using some strange directory -- certainly not the folder the .JAR is residing in.

Any ideas?

Matthew
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 17 2007
Added on Jun 18 2007
11 comments
452 views