aspose file tools*
The moose likes JNLP and Web Start and the fly likes Can an application read the resources outside of its own directory structure? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Can an application read the resources outside of its own directory structure?" Watch "Can an application read the resources outside of its own directory structure?" New topic
Author

Can an application read the resources outside of its own directory structure?

Ahmet Aksoy
Ranch Hand

Joined: Apr 04, 2005
Posts: 30
Can an application read the resources outside of its own directory structure after a Web Start installation?
Jared Cope
Ranch Hand

Joined: Aug 18, 2004
Posts: 243
Yes. This isn't really anything to do with webstart. It is more of a file path programming problem (which is usually a simple enough thing).

For example, our webstart delivered application references a lot of data files at C:\data\ on each computer that it is run on.

Cheers, Jared.


SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
Ahmet Aksoy
Ranch Hand

Joined: Apr 04, 2005
Posts: 30
Thanks Jared,
I'll try it as soon as possible.
Cheers,
Ahmet Aksoy
Ed Ewing
Greenhorn

Joined: Aug 30, 2005
Posts: 29
To get unlimited access to the disk, you will need to set the following tag in the jnlp file:



For this to work, you will also need to sign all the jar files using "jarsigner".

If you don't have a signed jar, you might need to make use of the "JNLP API" to access the file system. (I say might because I'm not sure. You might be able to read a file without a signed jar. I always sign mine.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can an application read the resources outside of its own directory structure?