Try as I could, I can’t run the JNLP file to run locally (with a double click). It seems that the problem is finding the jar file, even when I point it relative to the jnlp file. I get the following error:
The <jar> href field has an invalid Value: helloworld.jar
This happens even when the JNLP file is in the same folder as helloworld.jar. I did a search and this is not an easy problem, especially for people who want to pack the application on a CD and use JNLP. The only "solution" provided by Sun is the ability to specify a codebase through the command line, but that doesn't help much. I do not understand why they do not assume or do not allow the code base to be "." or "file: //." - I tried such things in the codebase parameter of the jnlp tag (inside the file), and nothing worked.
It’s very convenient for me to use the JNLP file because I don’t have to worry about discovering the platform, my own libraries or even the main JARL JARL files; I just include this line and everything is done for me:
<extension name="JOGL" href="http://download.java.net/media/jogl/builds/archive/jsr-231-2.0-beta10/webstart/jogl-all-awt.jnlp" />
I hope to find one that can do the same. If not, I can manually (or using Ant) capture jogl jar files, this is not very important; just one of the things that JNLP does for me, and I really will be bored.
What is the best alternative to JNLP files for me to use locally (i.e. double click to run)? Is there something so elegant or do I just need to write a shell script for Linux, a batch file for Windows and Ant to detect and load the corresponding JOGL banks?
java jnlp jogl
Ricket Jan 09 2018-10-10 at 10:47
source share