This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java console launched twice

 
Bob Chad
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No one noticed this problem before ?
Thanks
 
Bob Chad
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic