Application starts very slow if downloaded with JWS
769784Sep 29 2010 — edited Dec 14 2010Dear Friends:
I've to request apologizes about my bad English. I hope you can understand my question.
I'm developing a desktop app using Netbeans 6.9.1, and jdk 1.6_21. When I compile and run my app locally, the applications starts in less than 2 seconds.
But when I deploy it with JWS, after downloading all the jar files, the application startup is very slow, 20 seconds or more, depending on your net connection speed.
I'm generating the jnlp and signing the jar files with netbeans. But I'm using the same method in others apps, and they work perfectly weell.
The only difference between the slow app, and the normal apps, is that when the app is initiating, I can see the following entries in the java console if I press 5:
network: Connecting socket://XXX.XXX.XX.XX:XX/MyApp/somejar.jar with proxy=DIRECT
network: Connecting socket://XXX.XXX.XX.XX:XX with proxy=DIRECT
This mesagge repeats itself a lot of times. Ten or more times for each library. In the other applications that I develop with netbeans, and deploy using exactly the same method, that does not happens.
I've tried all the possible modifications to the jnlp file, but I find nothing.
Any ideas?
Thank you in advance
R. Campos.