What's wrong with this JNLP file?


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="http://buildism.net/game" href="play.jnlp" spec="1.0+">
    <information>
        <title>Buildism</title>
        <vendor>Jacob Morgan</vendor>
        <homepage href="http://buildism.net"/>
        <description>Buildism</description>
        <description kind="short">Buildism</description>
    <icon href="http://buildism.net/buildismicon.png" kind="default"/>
</information>
<security>
<all-permissions/>
</security>
    <resources>
		<j2se java-vm-args="-Xms512m -Xmx1024m" version="1.5+"/>
		<jar eager="true" href="Buildism.jar" main="true"/>
		<jar href="lib/swing-layout-1.0.4.jar"/>
		<jar href="lib/jsyntaxpane.jar"/>
    </resources>
    <application-desc main-class="net.buildism.Main">
	<argument>1</argument>
<argument>Jacob_</argument>
<argument>[...]</argument>
<argument>play</argument>
<argument>false</argument>
<argument>http://buildism.net/game/join.php?mode=play&amp;id=31</argument>

	
    </application-desc>
</jnlp>

I’ve tested it with Java 1.6/Windows and Java 1.5/Mac OS X without any trouble, but some users are reporting errors-namely, a syntax error on line 20 and a required field missing.

Anyone spot the problem?

I tried to run the game from your site and saw these errors:

[quote]WARNING:

tag is not closed correctly Exception parsing xml at line 20
[/quote]
and

[quote]java.io.FileNotFoundException: C:\Users\me\Music\Temp\Tunebite.downloading\profile\rrproxy_ffox_492c5db1.pac (The system cannot find the path specified)
[/quote]
Hope that helps track it down.

That jnlp says that the most up-to-date version of it can be found at http://buildism.net/game/play.jnlp but that URL gets redirected to your home page, which doesn’t parse as a jnlp.

Figured it out–I recently added a script to stop other websites from hotlinking the game file. However, I accidentally blocked blank referers too, and some firewalls strip all referers from HTTP requests.

Why hotlinking the game file is a problem for you? Personally I don’t like the websites that used hot links to the JARs because it is silly (it does not work, my game requires several JARs and some native libraries) but hotlinking the JNLP file is not a problem. Maybe you’d like people to get to your website to launch your game.

I’m making a tool that allows users to create games and share them on the website. The .jnlp file tells the game to do different things depending on what parameters you give to it.

In this case a software web site just linked to the file without any parameters, which would cause anybody that clicked the link to see the game editor and not have any idea what to do or what they could make with it.