Webstart Application Installation Directory?

Is there any standard/easy place to store your files so they can be found the next time the same Java Webstart application is run? Like an installation directory?

What files do you mean? If you mean the app, Webstart caches that for you. If you mean resources, if you put them ina jar they will again be cahced by webstart.

If you mean data generated by the run of your applciation, open a file based on the system proeprty “user.dir” as the root.

eg
String userDir = System.getProperty(“user.dir”);
File datafiel = new File(userDir+File.seperator+".myappdata");

If you want to store game settings, save games etc you should be using Webstart Muffins as described here: http://java.sun.com/products/javawebstart/1.0.1/developersguide.html

Personally I stick stuff in the user’s home directory and get complained at for sticking stuff there. Muffins are smarter in that they get hidden away with all the other webstart stuff.

Kev