So, I've downloaded a .jnlp file and tried to run it, but I've received an error message:
- Code: Select all
net.sourceforge.jnlp.LaunchException: Fatal: Read Error: Could not read or parse the JNLP file. You can try to download this file manually and send it as bug report to IcedTea-Web team.
Okay, lets Google it.
The error happens because netx uses an XML parser to parse the JNLP file. Other JNLP client implementations may use more lenient parsers and may or may not work with the given JNLP file. Errors caused by malformed JNLP files can often lead to subtle bugs, so it is probably best to fix the JNLP file itself. A tool like xmlproc_parse might be able to pinpoint the error.
So, the error is common and should be easy to fix. Lets see what is the output of xmlproc_parse:
- Code: Select all
Parsing 'TropicEuro.jnlp'
E:TropicEuro.jnlp:27:55: Not a valid name
E:TropicEuro.jnlp:27:55: '=' expected
E:TropicEuro.jnlp:28:71: One of '>' or '/>' expected
Parse complete, 3 error(s) and 0 warning(s)
Lets look into .jnlp file:
- Code: Select all
26 <java version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
27 <jar href="TropicEuro.jar" main="true" version="10.0"/
28 <jar href="TropicEuroUpdater.jar" download="progress" version="1.2"/>
Now is the tricky part. Adding a missing '>' in line 27 does not make the error disappear. The Output of xmlproc_parse is clean, but IcedTea still indicates missing bracket. I've tried some basic actions like cleaning cache, but it just wont go away. I have no knowledge of java and I'm helpless from this point, so I have decided to post it here. Any ideas?