Tropic Euro
Launch Tropic Euro
Facebook
Twitter
RSS

Running using IcedTea-Web 7

If you have an issue launching the game or logging in to the server, post it here.

Running using IcedTea-Web 7

Postby rhoki » Sat Apr 26, 2014 4:09 pm

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?
rhoki
 
Posts: 2
Joined: Sun Apr 13, 2014 10:04 pm
Country: Poland (PL)

Re: Running using IcedTea-Web 7

Postby ChrisGibbs » Tue Apr 29, 2014 9:28 am

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)
Chris Gibbs
Programmer/Musician at Inner Version Ltd
Image
User avatar
ChrisGibbs
Site Admin
Site Admin
 
Posts: 116
Joined: Fri Jun 29, 2012 10:54 am
Location: Bath, UK
Country: United Kingdom (GB)

Re: Running using IcedTea-Web 7

Postby rhoki » Sat May 03, 2014 2:43 pm

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?
rhoki
 
Posts: 2
Joined: Sun Apr 13, 2014 10:04 pm
Country: Poland (PL)

Re: Running using IcedTea-Web 7

Postby ChrisGibbs » Mon May 05, 2014 9:33 am

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 :)
Chris Gibbs
Programmer/Musician at Inner Version Ltd
Image
User avatar
ChrisGibbs
Site Admin
Site Admin
 
Posts: 116
Joined: Fri Jun 29, 2012 10:54 am
Location: Bath, UK
Country: United Kingdom (GB)

Re: Running using IcedTea-Web 7

Postby wva » Mon May 26, 2014 4:52 pm

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
wva
 
Posts: 7
Joined: Fri May 02, 2014 11:50 pm
Country: United States (US)


Return to Installation / Login Issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Copyright © 2015 Inner Version Ltd | Latest News | Contact Us | Music by Inner Version | Hosted by IT Support Bristol