Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

Cannot find file when starting jnlp from browser

843802Sep 11 2009 — edited Sep 14 2009
First of all, im not a web guru, so sorry for my weak knowledge on that part.


I have a swing application packed in a war file.

In the root of war file i put my jnlp, html that links to jnlp, and jar file. (everything created with NetBeans)

But there is also a directory "data" inside war where i hold some files.

My application is accessing those files at runtime. (those are save files for my game)

So, when i start jnlp directly everything is fine, but when i start jnlp through html link, i got error message:
SEVERE: null
java.io.FileNotFoundException: data\options.data (The system cannot find the path specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(Unknown Source)
	at java.io.FileInputStream.<init>(Unknown Source)
        ...
Java Web Start starts correctly, i can see my first panel of the application, but when i proceed (application tries to load save file), it can not find that file (options.data) obviously.

How is it possible that everything works fine when i start jnlp directly, and it fails when i start it through the browser?
What is the problem here?

Thanks for the help!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 12 2009
Added on Sep 11 2009
3 comments
519 views