Login  Register

Re: jogl 1.1.1 vs 2.0 jnlp applet

Posted by Petr Skramovsky on Oct 13, 2010; 4:55pm
URL: https://forum.jogamp.org/jogl-1-1-1-vs-2-0-jnlp-applet-tp1686929p1695740.html

Hi,

You are right, i'm dumb i didn't try that, now it's working pretty well again. Problem was webstart itself as you said, imho it wasn't caused by unsigned jars( btw all of my jars are signed ), it started working after i put all applet stuff to .jnlp file, but it didn't work in IE so i changed classic html applet creation to javascript deploy and also deteled deploy cache (%appdata%\..\LocalLow\Sun\Java\Deployment\cache).

Thanks for help, best regards Petr Skramovsky.

My Applet:
<script src="http://www.java.com/js/deployJava.js" language="javascript" type="text/javascript"></script><script language="javascript" type="text/javascript"> var attributes = { code:'mpfc.mo.MOApplet', width:'100%', height:'100%' }; var parameters = { jnlp_href: 'mo.jnlp' } ; deployJava.runApplet( attributes, parameters, '1.6' ); </script>
JNLP file :
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="6.0+" codebase="" href="mo.jnlp">
  <information>
    <title>MapsOnline</title>
    <vendor>MapFactor</vendor>
    <homepage href="https://mo.mapfactor.com"/>
    <description>Online Tracking System</description>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <update check="always" policy="always"/>
  <resources>
    <j2se version="1.6+" initial-heap-size="128m" max-heap-size="256m" />
    <jar href="build/16bf58d2fa4bdbf8a66dfd1a5afb9657adde7b1a/mpfc.mo.jar" main="true"/>
    <extension name="jogl" href="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp" />
    <jar href="build/16bf58d2fa4bdbf8a66dfd1a5afb9657adde7b1a/mpfc.gl.jar"/>
    <jar href="build/16bf58d2fa4bdbf8a66dfd1a5afb9657adde7b1a/mpfc.map.jar"/>
    <jar href="build/16bf58d2fa4bdbf8a66dfd1a5afb9657adde7b1a/mpfc.common.jar"/>
    <jar href="build/16bf58d2fa4bdbf8a66dfd1a5afb9657adde7b1a/mpfc.tracking.jar"/>
    <jar href="build/16bf58d2fa4bdbf8a66dfd1a5afb9657adde7b1a/mpfc.localisation.jar"/>
    <property name="sun.awt.noerasebackground" value="true"/> 
    <property name="sun.awt.erasebackgroundonresize" value="true"/> 
    <property name="sun.java2d.noddraw" value="true"/> 
  </resources>
  <applet-desc  
    main-class="mpfc.mo.MOApplet"
    name="MOApplet"
    width="800"
    height="600">
  </applet-desc>
</jnlp>