jnlp question

Trying to get jnlp working.
The htm, jnlp and jar files are installed on the server.
In firefox, in the htm file, I click on the link to open the jnlp file.
A dialog box pops up asking what to do with the jnlp file.
I select Open with Java Web Start
I see the Java 6 splash, and then very quickly a Java Web Start dialog box appears then disappears, and then nothing.
Where can I look for logging or error messages?

To complicate matters, I am working with an uncooperative sys admin.
He says he has mapped the mime type
(see here http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Microsoft_IIS/Q_26839916.html)

Who is Participating?
startup jws and enable the console
allelopathAuthor Commented:
I don't see an option to enable a console using the javaws command.
Can you elucidate?
go to the Control panel ther is item called Java,
double-click on it, select Advanced tab and enable
Java Console - at least if you have recent java - it shluld be like that
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

depends on the platform, but most provide the option from the control panel
allelopathAuthor Commented:
MissingFieldException[ The following required field is missing from the launch file: <jnlp>]
      at com.sun.javaws.jnl.XMLFormat.parse(XMLFormat.java:99)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:57)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:75)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:121)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:349)
      at com.sun.javaws.Main.launchApp(Main.java:306)
      at com.sun.javaws.Main.continueInSecureThread(Main.java:250)
      at com.sun.javaws.Main$1.run(Main.java:111)
      at java.lang.Thread.run(Unknown Source)

html file is simple:

<a href="myfile.jnlp">Start</a>


another option is to urun your app from the command line

thats complaining about your jnlp file, not the html
allelopathAuthor Commented:
I did a validate in Eclipse on the jnlp file, no errors.
check what the response from the server actually contains
allelopathAuthor Commented:
>>check what the response from the server actually contains
How do I do that?

More info:
The MissingFieldException occurs when using Firefox on Win XP or Firefox on OS X.
If I try Internet Explorer (on Win XP), I get this:

java.security.AccessControlException: access denied (java.util.PropertyPermission com.apple.mrj.application.apple.menu.about.name write)
      at java.security.AccessControlContext.checkPermission(Unknown Source)
      at java.security.AccessController.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkPermission(Unknown Source)
      at java.lang.System.setProperty(Unknown Source)
      at MyApplication.main(MyApplication.java:485)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.sun.javaws.Launcher.executeApplication(Unknown Source)
      at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
      at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
      at com.sun.javaws.Launcher.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

Line 485 is this:
System.setProperty("com.apple.mrj.application.apple.menu.about.name", "MyApplication");

> System.setProperty("com.apple.mrj.application.apple.menu.about.name", "MyApplication");

you'll need to sign your jars for that

allelopathAuthor Commented:
I have just this one System.setProperty(), so I might just comment it out for now.
I have some java.util.Properties which I set, but these would not required signing the jar, correct?
sounds like your jnlp problem is related to the response from the server. use firebug to check what is being returned

> I have some java.util.Properties which I set, but these would not required signing the jar, correct?

allelopathAuthor Commented:
I haven't had time to work on this. I will close the question and post again if need be.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.