Hi all!
I’m working on a RIA launched trough JWS.
The application is a really big one and is developed by many people and it’s based on SWING. I’m working on a GIS component based on JOGL.
With JRE 1.6.0_12+
…and by using
-Dsun.java2d.noddraw=true -Dsun.java2d.opengl=true
…options I managed to get a GLCanvas into a Swing Internal Frame (Internal Frames are mandatory for this app) with full OpenGL acceleration.
BUT! This works only by running the client from the development environment.
JNLP doesn’t seem to accept those parameters and the same interface runs many times slower if launched through JWS. I found in a forum that Java 6 should accept both parameters as “secure” and send them to the JVM in the command line but it doesn’t look it really happens.
I tried putting them in the JNLP as “property” tags:
`
(...)
<property name="sun.java2d.noddraw" value="true"/>
<property name="sun.java2d.opengl" value="true"/>
`
…and also tried in java-vm-args attribute:
`
<j2se java-vm-args="-XX:MaxPermSize=512m -Xcheck:jni" -Dsun.java2d.noddraw=true -Dsun.java2d.opengl=true max-heap-size=“1024M” version=“1.4+”/>
(...)
`
…but nothing.
Anyone has faced similar problems with JNLP? :’(