Tiled website

Web discussions, including project website, forums, wiki, and others.
Post Reply
User avatar
5t3v3
Novice
Novice
Posts: 451
Joined: 31 Oct 2007, 16:08
Location: Belgium
Contact:

Tiled website

Post by 5t3v3 » 19 Feb 2008, 16:25

I dunno if this is the right place to post it, it's not really about the TMW website, but an associated website. But anyways...
Since a couple of days, if I go to http://mapeditor.org/
And I press the "start now" link I get:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://mapeditor.org/" href="tiled.jnlp">

<information>
<title>Tiled</title>
<vendor>Tiled Development Team</vendor>
<homepage href="http://mapeditor.org/"/>
<description>Tiled map editor</description>
<icon href="/images/logo.png"/>
<!-- <icon kind="splash" href="/images/your_splash_graphic.gif"/> -->
<offline-allowed/>
</information>

<security>
<all-permissions/>
</security>

<resources>
<j2se version="1.4+"/>
<jar href="tiled-ws.jar" />
</resources>

<application-desc main-class="tiled.mapeditor.MapEditor"/>

</jnlp>
In game characters: "5t3v3" and "L "
User avatar
Bjørn
TMW Adviser
TMW Adviser
Posts: 1430
Joined: 09 Dec 2004, 19:50
Location: North Rhine-Westphalia, Germany
Contact:

Re: Tiled website

Post by Bjørn » 19 Feb 2008, 18:34

Hmm yes, this is because of Apache not knowing the mime type of *.jnlp files.

Platyna, can you please add application/x-java-jnlp-file as the mime type for *.jnlp to your Apache configuration? Or can I do this with a .htaccess option or something (no time to look up now...).
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Re: Tiled website

Post by ElvenProgrammer » 19 Feb 2008, 22:26

I use this .htaccess file for my web start applications:

Code: Select all

# Return the right mime type for JARs
AddType application/x-java-jnlp-file JNLP
User avatar
Platyna
Knight
Knight
Posts: 2213
Joined: 19 Nov 2005, 14:19
Location: Poland
Contact:

Re: Tiled website

Post by Platyna » 19 Feb 2008, 23:21

Code: Select all

# cat /etc/httpd/mime.types | grep jnlp
application/x-java-jnlp-file                    jnlp
Regards.
Zuzanna K. Filutowska
[The rest of this signature was censored by TMWC's "Freedom" and "Free speech".]
User avatar
Bjørn
TMW Adviser
TMW Adviser
Posts: 1430
Joined: 09 Dec 2004, 19:50
Location: North Rhine-Westphalia, Germany
Contact:

Re: Tiled website

Post by Bjørn » 25 Feb 2008, 20:08

Platyna wrote:

Code: Select all

# cat /etc/httpd/mime.types | grep jnlp
application/x-java-jnlp-file                    jnlp
Regards.
Thanks.
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Re: Tiled website

Post by Jaxad0127 » 25 Feb 2008, 20:24

It now tries to download the jnlp file.
Image
User avatar
Bjørn
TMW Adviser
TMW Adviser
Posts: 1430
Joined: 09 Dec 2004, 19:50
Location: North Rhine-Westphalia, Germany
Contact:

Re: Tiled website

Post by Bjørn » 26 Feb 2008, 09:48

jaxad0127 wrote:It now tries to download the jnlp file.
Yes, but is probably because you haven't installed Java Webstart, or at least you have not associated files of type *.jnlp (application/x-java-jnlp-file) with javaws(.exe).
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Re: Tiled website

Post by Jaxad0127 » 26 Feb 2008, 15:22

Sorry. I thought it was a server-side app.
Image
Post Reply