tags:

views:

6

answers:

0

I have an application that has some 3rd party libraries that require some configuration files to exist. I put these in jar files so they can be deployed using JWS. I know that you can read files from the jar file using getResourceAsStream(), but the 3rd party libraries don't do that. I have tried reading them out of the jar with getResourceAsStream and writing the actual files to user.dir. The application works fine that way. However, it seems that most of the users launch the application from a shortcut on the deskop, so of course their user.dir is the desktop. They would rather not litter their desktop with configuration files.

Is there some better way I can handle this?