aspose file tools*
The moose likes JNLP and Web Start and the fly likes Java console launched twice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Java console launched twice" Watch "Java console launched twice" New topic
Author

Java console launched twice

Bob Chad
Greenhorn

Joined: May 20, 2010
Posts: 19
Hi everyone,
I have a strange problem. I've created an applet and a jnlp launch file wich work no problem.
On some browsers, IE & Firefox, the java console is launched twice (2 JVM) . Then after a few minutes, the first console closes..
On Safari, no problem, only one console.

The applet is signed and i use JOGL

Here is the applet code


and here is the jnlp code


This doesn't seem to affect the applet, but I'd like to know why.

Thanks for your help
Bob Chad
Greenhorn

Joined: May 20, 2010
Posts: 19
No one noticed this problem before ?
Thanks
Bob Chad
Greenhorn

Joined: May 20, 2010
Posts: 19
Ok, so for anyone interested here's what I've found...

Note: It is important for the startup time to have the same JVM arguments in the applet tags, as well as within the JNLP applet description, here see property sun.java2d.noddraw. Only if JVM arguments of the JNLP applet description are satisfied by the applet tag’s JVM, the plugin will not need to start a new JVM. OF course, the applet tag’s JVM spec may exceed the JNLP applet’s one.


found here JOGL FAQ

I've solved my problem by removing the following line in the JNLP file


Now Java console only launches once even in Safari
Safari functions strangely with java Applet, compared to IE, Firefox, Opera & Chrome
It seems to ignore JNLP file

Anyway it all works, here's the applet code




and the jnlp file


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java console launched twice