Java Web Start does not start properly in windows 2000
Hi everyone:
I am using Java Web Start (JWS) on my NT 4.0 workstation (JDK 1.3.1, Netscape 4.78), and everything works fine. This morning, I installed it on a colleague's Windows 2000 station (JRE 1.3.1, Netscape 6.01). The install process worked fine but JWS does not start.
To determine where the problem might come from, I changed javaw.exe to java.exe in the javaws.cfg file and briefly saw an error message before the console window disappears. After several attempts to figure out what the error is (the console window disappears too quickly), I could determine that it is a NullPointerException.
In both cases, I used the "update" release of JWS 1.0.1_01, since JDK and/or JRE is already installed on our machines.
Does anyone have an idea of where the problem might come from? Are there compatibility issues with Windows 2000?
Thanks in advance for any helpful hint...
Jean-François Morin
[954 byte] By [
jfmorin] at [2007-9-26 4:37:25]

Netscape 6?
I had problems that seem to suggest that MIME Type registration for application/x-java-jnlp-file does
not work correctly for NS6 and Mozilla, but that was under Linux.
Did you try with internet explorer or by running it manually (javaws URL)?
Regards,
Marc
Hi Marc:
I tried to start it with javaws URL, but is still does not work.
As a matter of fact, I mentioned Netscape 6, but I am not sure that the JWS startup problems have anything to do with it. Among my tests, one consisted to start it with a JNLP file (tested as fully functional from my computer!), and the MIME type is correctly registered in my colleague's Netscape 6 installation.
The symptoms are always the same: the JWS splash screen appears (small when starting an URL from the navigator or as a javaws.exe parameter, large when starting javaws.exe with no parameters), stays on screen (in front of all windows) for about 20 seconds, and disappears. No processes remain in the Windows 2000 Task Manager.
I would gladly try to start JWS from a "java -classpath {JWS jars} {JWS main class}" in a console window, but there seem to be platform-native tricks in the startup process... Even the Linux version calls a native binary executable to start JWS!
Finally, I tested JWS on another Windows 2000 and it worked fine! Might the problem come from some system corruption? If so, what might it be precisely?
Many thanks,
Jean-François Moirn
> The symptoms are always the same: the JWS splash
> screen appears (small when starting an URL from the
> navigator or as a javaws.exe parameter, large when
> starting javaws.exe with no parameters),
If you get to a splash screen, the association is correct, of course.
> stays on
> screen (in front of all windows) for about 20 seconds,
> and disappears. No processes remain in the Windows
> 2000 Task Manager.
Sounds pretty foobar to me that box.
> I would gladly try to start JWS from a "java
> -classpath {JWS jars} {JWS main class}" in a console
> window, but there seem to be platform-native tricks in
> the startup process... Even the Linux version calls a
> native binary executable to start JWS!
C:\>cd "Programme\Java Web Start\Java Web Start 1.0.1_01"
C:\Programme\Java Web Start\Java Web Start 1.0.1_01>javaws
Fires up Web Start in stand alone mode (Application Manager), no problem here. Give it the url to the
.jnlp as argument, it will fire up the app behind it.
If you want to debug, you might use that hint:
http://www.geocities.com/vamp201/jwsfaq.html#debug
> Finally, I tested JWS on another Windows 2000 and it
> worked fine! Might the problem come from some system
> corruption? If so, what might it be precisely?
No idea. Windows 2000 surprises me all the time, when I have to reinstall it once again, because it "aged" somehow.
Perhaps you manage to do with just reinstalling Web Start, maybe removing existing Java installations on that box.
Regards,
Marc
Hi Paul:
> > and disappears. No processes remain in the Windows
> > 2000 Task Manager.
>
> Sounds pretty foobar to me that box.
I just realised the ambiguity of my sentence! Of course, I was talking about java.exe or javaw.exe process that remain sometimes from applications that don't shut down by themselves...
> C:\>cd "Programme\Java Web Start\Java Web Start
> 1.0.1_01"
>
> C:\Programme\Java Web Start\Java Web Start
> 1.0.1_01>javaws
I tried this precisely, but it launches the process in another console window that disappears immediately after the error message is displayed (cf. the NullPointerException).
> http://www.geocities.com/vamp201/jwsfaq.html#debug
Well, well, well... Fiat lux! Here is the mysterious exception message:
Exception in thread "main" java.lang.NullPointerException
at com.sun.javaws.proxy.WinInternetProxy.getNSVersion(Unknown Source)
at com.sun.javaws.proxy.WinInternetProxy.getBrowserInfo(Unknown Source)
at com.sun.javaws.proxy.InternetProxy.getDefaultInfo(Unknown Source)
at com.sun.javaws.Main.initializeExecutionEnvironment(Unknown Source)
at com.sun.javaws.Main.main(Unknown Source)
I understand that the JVM is unable to retrieve the current Netscape version in the Windows registry and a NullPointerException is consequently thrown somewhere around!
There is thus no need to search elsewhere: my colleague's computer has Netscape properly registered as its default browser but the current version is not correctly registered!
Thanks for the hint!
Best regards,
Jean-François Morin
> There is thus no need to search elsewhere: my
> colleague's computer has Netscape properly registered
> as its default browser but the current version is not
> correctly registered!
What version does he use?
There seems to be an issue with Netscape 4.7x vs. the newer Mozilla/Netscape 6 browsers.
In another discussion in this forum a participant wrote that the new Mozilla association for MIME types to applications needs a plugin, not just the usual entry in the preferences dialog.
I have not verified that statement, but it would explain why a colleague has problems launching Web Start apps automatically from newer Netscape browsers under Linux.
Regards,
Marc
Hi Marc:He uses Netscape 6.1. However, the application/x-java-jnlp-file MIME type seems to work properly in Windows. However, I have not tested the issue on Linux.Best regards,Jean-François Morin
I had a problem with Java Web start and 2000 also.Turned out that Admin priv. was needed. I don't recall and error during the install, only when I tried to launch a java app.
I've been screwing with this thing for 2 days, and it wont work for me either. I actually get it to the point where I can click the link to the jnlp file, JWS starts up, initializes and says "Starting Application". At that point it sits, presumably forever. I've never let it sit longer than 45 minutes or so. There is no output on the Java console. No error message. Just nothing happening.
> I've been screwing with this thing for 2 days, and it
> wont work for me either. I actually get it to the
> point where I can click the link to the jnlp file, JWS
> starts up, initializes and says "Starting
> Application". At that point it sits, presumably
> forever. I've never let it sit longer than 45 minutes
> or so. There is no output on the Java console. No
> error message. Just nothing happening.
A colleague and later I had that kind of behaviour.
In our case it turned out that Web Start is not deinstalling properly
at time, and thus some version mismatch occurs.
My colleague had Web Start 1.0.1 first and then he put the JDK 1.4 beta on his machine. JDK 1.4 has Web Start included.
I deinstalled Web Start 1.0.1 and installed 1.0.1_01.
The solution was to deinstall Web Start again, and then go to the installation directory (eg c:\program files\java web start\) and nuke everything there.
Note that IE 5.5. tends to suck in and thus lock the webstart.dll at times, so check that there is really nothing left.
Then reinstall your favourite Web Start.
Regards,
Marc
Thanks for the suggestion. I just tried your idea, and the computer definitely had more activity going on during the start up. But it still never got beyond the "starting application" phase.
This application is a bit unique, maybe there is some detail I am overlooking. It was written as an application/applet. Which means it is basically an applet with a public static void main(args[]) method. the main method just creates a JPanel and loads intself into the panel as an applet. So maybe there is some issue with this?
I am configuring it in the jnlp file as an application, not as an applet. This is required because the application has to accept an argument and does not currently support applet parameters.
This is also an unsigned application. I'm using Weblogic 5.1.0 and JRE 1.3.1 and JWS 1.0.1.01.
Could it be a security thing? Should I sign the application? I've never done that before but I will if I have to.
I am having the same problem where I can't start javaws from either the command line or from the startup menu. I tried the debugging tips and get nothing.Webstart just hangs!Machine is a Windows 2000.Any help is appreciated.Raghu
If netscape if your default browser, try adding this line into your .cfg file, it might help. javaws.cfg.proxy.setting=NONEIf this doesn't work I would suggest making IE your default browser.
Any way around this? I just installed on a colleague's machine as admin.. and now he can't run anything as himself because webstart doesn't have permission to write temporary files. Why isn't it smart enough to find a place on its own that it can write to?!?!
The pattern seems to be with Netscape 6.x
I've run Java Web Start on Win 95, 98, NT & 2000 and only seem to have problems with 2 software combinations.
1) Win 95 with Cyber Armour (personal firewall), if I deactivate Cyber Armour, Web Start still doesn't work, I have to remove it completely if I want to use WebStart
2) Win 2000 & Netscape 6.x . I added the suggested check (in the documentation) for Web Start to my HTML page, and after downloading Web Start in IE, the message indicates it is installed, but if I go to Netcape, the message still has it as not being installed!! If I try re-installing with Netscape it just craps out. The Application manager won't load at all. So I'm stuck, with the splash screen appearing for JWS and then just goes away.
I also have problems on a collegues win2000 desktop.
Starting the java web start application from the desktop shortcut
and from the installed directory under program files just brings up
the splash screen and nothing more seems to be happening.
No processes left when looking in the task manager...
/Georges
Just as pointed out earlier the solution (which worked for me) wasto lett IE be associated with html files instead of Netscape. My collegue has deinstalled Netscape but the file associationwas left - changing it to IE worked. Thanx
I have the same problem. I tried all suggested setting, which I found in this forum, but nothing helped. Then I remembered, that some time ago I had a problem with one program because of language setting in Windows (I am not from English speaking territory, so I didn?t have Regional settings set to English), so I changed language (Regional options) to English (United States) and suddenly the Java Web Start starts working.
Hope this helps for someone.
Tomaz
Well, here's another sad camper with the same problem.
Yesterday, up until the point I invoked the wrath of the godz, my JWS app was at least loading (I am trying to get security to work, so it was crapping out there, but at least that was something).
I am on Win2KSP2, JDK1.4.0b92, JWS 1.0.1_02, with NS4.7x, NS6.2, and IE5.0 installed (NS6 is my default browser).
I too get the JWS splash for about 20 seconds, then nothing. Nothing shows in the cache, or gets installed in the JWS Application Manager...
I've tried the "Regional settings" trick, changing my default browser (can't see what that would work, but I'll try anything), re-installing, etc.
I think this bug continues to thrive, only some of us were lucky enough to get it to go away... but for how long? :/\
- rob
Uninstalled JRE *and* JDK (hey, I get paid by the hour), did my best at cleaning up the registry... unintalled Netscape 6.2, installed 6.2.2.... reinstalled JDK 1.4.... installed JWS1.0.1_02....
SAME PROBLEM - splash screen appears, then nothing. I get some kind of null pointer exception on the console that whizzes by, but haven't been able to capture it yet....
boo hoo hoo, woe is me......
- rob
I get failures every time I install a new jar.there muct be some fundamental BUG.I have to run to different PCs and make patcheslike the proxy installation, remove JWS, restart the PC,and it still does NOT WORK.Streiker
Well. After trying various proposed solutions, and trying several of my own (including creating a C-coded 'wrapper' that redirects the catch-me-if-you-can error message I could see on the f****** console that flashed past me - this didn't work, by the way) ... I decided to look at fundamentals.
And discovered an XML error in my .jnlp file.
I guess I should run these things thru a validating parser, or something. Sheesh.
Anyway, thought I'd fess up in case it does somebody else some good. Check your XML again.
sheepishly,
rob