Page 1 of 1

Running using IcedTea-Web 7

PostPosted: Sat Apr 26, 2014 4:09 pm
by rhoki
Hi, I'd like to describe some issues I had trying to run Tropic Euro using OpenJDK 7 and IcedTea7 as plugin.

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?

Re: Running using IcedTea-Web 7

PostPosted: Tue Apr 29, 2014 9:28 am
by ChrisGibbs
I've edited TropicEuro.jnlp to include the angled bracket, please can you try again to see if that works?

(apologies, not sure why the Sun/Oracle JDK hasn't flagged that as an error with the file)

Re: Running using IcedTea-Web 7

PostPosted: Sat May 03, 2014 2:43 pm
by rhoki
Yep, it works now. So that means the issue was really that bracket? I'm a little confused, why editing the file on my disk wouldn't help?

Re: Running using IcedTea-Web 7

PostPosted: Mon May 05, 2014 9:33 am
by ChrisGibbs
I'm guessing that IcedTea was first retrieving the local file on disk, and then going online to find an updated version before actually running the application. The JNLP file is occasionally tweaked over time (e.g. the square TE logo was improved recently), so it's handy that the Java Web Start client checks for an update each time TE is run.

Excellent that it now works with IcedTea though :)

Re: Running using IcedTea-Web 7

PostPosted: Mon May 26, 2014 4:52 pm
by wva
ChrisGibbs wrote: The JNLP file is occasionally tweaked over time (e.g. the square TE logo was improved recently), so it's handy that the Java Web Start client checks for an update each time TE is run.


Thank god for automatic updaters so we don't miss the new logo ;-)

Thanks for the update