Using JNLP with Netbeans on Mac OSX

I am trying to get an idea on JNLP by running locally from folder before I start using it with web server. Therefore its a new-bie question. I have a jar file in "netbeansProjectFolder/dist" folder along with library folders. I created a jnlp file in netbeansProjectFolder. The file contains the following code:

<?xml version="1.0" encoding="UTF-8"?>

<jnlp spec="1.0+" codebase="file://Users/myName/Desktop/netbeansProjectFolder">

<information>

<title>JNLP test</title>

<vendor>me</vendor>

<homepage href="www.web.com" />

<description>Demonstration of JNLP</description>

</information>

<offline-allowed/>

<security>

<j2ee-application-client-permissions/>

</security>

<resources>

<j2se version="1.2+" />

<jar href="file://dist/myJNLP.jar"/>

</resources>

<application-desc main-class="MyFrame"/>

</jnlp>

I am trying to run it locally but cannot find resources. I think there is no problem with location, is there any other issues I have to worry about? By the way, jar runs independently without any problem. Thanks in advance.

[1279 byte] By [wahiduna] at [2007-11-26 17:01:09]
# 1
NetBeans has an add-in for creating and editing jnlp files and WS apps. You have to install it from the NB update site.
ChuckBinga at 2007-7-8 23:28:54 > top of Java-index,Desktop,Deploying...
# 2

Note that the jar href should be a path

that is relative to the codebase.

I also noted that your JNLP element has

a codebase but no href for the JNLP itself.

I suggest

a) changing it along these lines

<?xml version="1.0" encoding="UTF-8"?>

<jnlp

spec="1.0+"

codebase="file://"

href="Users/myName/Desktop/netbeansProjectFolder/LAUNCHFILE.jnlp" >

...

<j2se version="1.2+" />

<!-- remove the codebase from the jar ref -->

<jar href="dist/myJNLP.jar"/>

</resources>

<application-desc main-class="MyFrame"/>

</jnlp>

b) Validating the result aginst the DTD.

Message was edited by:

AndrewThompson64

AndrewThompson64a at 2007-7-8 23:28:54 > top of Java-index,Desktop,Deploying...
# 3
I did apply those changes, it did not help. I am getting the same error message. I will try downloading netbeans add-ons tools to see if I can get it to work. I really appreciate your help. Thanks.
wahiduna at 2007-7-8 23:28:54 > top of Java-index,Desktop,Deploying...