views:

227

answers:

3

On my Windows 7 x64 machine, I'm having problems launching my remotely deployed Web Start app (the Web Start app launches correctly on another PC as expected). In IE or FF, I click on the web start launch link, the JNLP is downloaded, it seems to get executed and nothing happens. I see javaws.exe processes running. I don't see a java.exe running.

I don't know if it's related but I also can't get the java console to run. In the Control Panel Java applet settings, I have have enabled "Show console" and "place Java icon in the system tray". I don't see the Java icon in the system tray either.

I'm running Java 1.6.0_21 (32 bit). I'm able to run Netbeans so the it appears as if Java is installed correctly on my machine. Why isn't web start working?

+1  A: 

Are you absolutely certain that your Windows browser is binding the JNLP suffix to the javaws executable?

If you download the file, and double click, does it open correctly? If not, then right click, and investigate what is presented under Open With...

Thorbjørn Ravn Andersen
Yes, I'm pretty sure the binding is correct because I see the javaws.exe process get started when I click on the jnlp file. I also right clicked on the jnlp file and indeed it is bound to Java Web Start Launcher.
Sajee
Then it is time to run "javaws foobar.jnlp" in a CMD.EXE window and see what happens. javaws has plenty of flags to help you learn more about what goes wrong.
Thorbjørn Ravn Andersen
I tried "javaws -verbose launch.jnlp" and nothing happens.
Sajee
No diagnostics or error messages when I ran "javaws -verbose launch.jnlp". The Win7 busy cursor appears for a few secs and then it turns back into the pointer. Any reason why I'm having problems viewing the Java console or why I don't see the Java icon in the system tray. I wonder if this is all related...?
Sajee
The app runs fine as a plain old Java app. When I try to run it as a Web Start app from Netbeans, I see this in the output window:javaws "C:\temp\dist\launch.jnlp"jnlp:sign-jars:generate-jnlp:Copying 1 file to C:\temp\distDeleting: C:\temp\dist\launch.jnlp_generate-html-preview:jar:jws-run:Splash: server socket failed: No such file or directoryJava Web Start splash screen process exiting .....Does that offer any clues?
Sajee
If nothing happens, then it is confirmed that javaws is broken on this system. I would suggest completely removing and reinstalling your Java runtime.
Thorbjørn Ravn Andersen
+2  A: 

A firewall on my corporate joined domain was the problem. It was preventing web start as well as other types of apps from working correctly or even launching. Opening ports resolved it.

Sajee
May I ask which ports?
Eric Wendelin
Honestly, I don't know for sure. I opened up all ports just to get this working. After I was done, I removed the firewall rule.
Sajee
A: 

I had the same symptoms when I switched JNLP specifiction to 6.0. So I simply solved it by going back to 1.5, which I think is default in NetBeans, at least up til 6.7.

<jnlp spec="6.0+"...
Avall