| 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
|
 |
 |
|
|
subject: Java console launched twice
|
|
|