Posted by anilp1
on August 10, 2006 at 8:20 PM PDT
Can my application know the location of the jnlp file that launched it?
Or, is there some workaround that will allow relative references?I have a folder on the client desktop that contains some data files and the jnlp file.
The folder is not on the webserver, though the jars were originally downloaded from there.
When the user clicks on it, it launches the application, and passes in the tag, the relative path of the datafile. for example, ../mydata1.txt.
Passing in the relative path is good because (like html), the folder can be moved to another location or emailed, and the application still work.
Does anyone know how to do this?
goodnewsforyou A T yahoo D O T com
P.S. my application is digitally signed so I am not using the basic and other jnlp services.
I want the location of the jnlp file. This will allow the application to access the data files in the folder that contains it. This will likely be on the client.
If html provides for relative urls, why cant jnlp?!!!
This is rather urgent for me so any help appreciated.