Login  Register

[Solved]Applet deploy serious problems.

Posted by cupcakey on Oct 26, 2012; 11:34pm
URL: https://forum.jogamp.org/Solved-Applet-deploy-serious-problems-tp4026628.html

I've been trying to deploy an applet literally for 3 days straight non-stop. Can't get it right. I've tried everything I can think of. Even a random walk approach, hah. Would really love some insight. I've tried everything even removing my mouse listener and using AWT gui controls instead. I've tried Java 7 tried Java 6. Tried it on windows XP and linux mint 13.  Tried adding lots of extra libraries. My jar is sealed and Signed succesfully. There are no warnings or errors in any of the classes.

Are there any up to date tutorials for JOGL2.0 deployment(INCLUDING the applet source code)? Jogl gears demo works for me but following it's style has gotten me nowhere.

Is AWT not allowed? Do I have to use NEWT? Is it Okay that I have my .jnlp and .jar on an alternate webhost(angelfire) as mine won't allow hosting of .jar's?

URL : http://realchemist.zxq.net/pages/Applets/test.html
code: ( left carrots omitted as the post eats it)
object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="256" height="320">
   param name="code" value="org.jdesktop.applet.util.JNLPAppletLauncher">
   param name="archive" value="http://jogamp.org/deployment/webstart/jar/gluegen-rt.jar,
               http://jogamp.org/deployment/webstart/jar/jogl.all.jar,
               http://www.angelfire.com/indie/kcsoft/orbexplor.jar">
   param name="codebase_lookup" value="false">
   param name="subapplet.classname" value="OrbitalExplorer.orbitalExplorerApp">
   param name="subapplet.displayname" value="Orbital Explorer">
   param name="noddraw.check" value="true">
   param name="progressbar" value="true">
   param name="jnlpNumExtensions" value="1">
   param name="jnlpExtension1" value="http://jogamp.org/deployment/webstart/jogl-awt.jnlp">
   param name="java_arguments" value="-Dsun.java2d.noddraw=true">
   param name="jnlp_href" value="http://www.angelfire.com/indie/kcsoft/oe.jnlp">
   comment>
     <embed code="org.jdesktop.applet.util.JNLPAppletLauncher"
          width="256" height="320"
          type="application/x-java-applet;version=1.6"
          pluginspage="http://java.sun.com/javase/downloads/ea.jsp"
          archive="http://jogamp.org/deployment/webstart/jar/gluegen-rt.jar,
               http://jogamp.org/deployment/webstart/jar/jogl.all.jar,
               http://www.angelfire.com/indie/kcsoft/orbexplor.jar"
          codebase_lookup="false"
          subapplet.classname="OrbitalExplorer.orbitalExplorerApp"
          subapplet.displayname" value="JOGL Gears Applet"
          noddraw.check" value="true"
          progressbar="true"
          jnlpNumExtensions="1"
          jnlpExtension1="http://jogamp.org/deployment/webstart/jogl-awt.jnlp"
          java_arguments="-Dsun.java2d.noddraw=true"
          jnlp_href="http://www.angelfire.com/indie/kcsoft/oe.jnlp">
        <noembed>Sorry, no Java support detected.</noembed>
     
   </comment>


oe.jnlp code
<?xml version="1.0" encoding="utf-8"?>
        <jnlp spec="1.0+" href="http://www.angelfire.com/indie/kcsoft/oe.jnlp">
                <information>
                        <title>Orbital Explorer</title>
                        <vendor>Casey Kneale</vendor>
                        <homepage href="http://www.realchemist.zxq.net/"/>
                        <description>Atomic orbital demonstrations</description>
                        <offline-allowed/>
                </information>
                <security>
                        <all-permissions/>
                </security>

                <update check="always" policy="always"/>
                <resources>
                        <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="32m" max-heap-size="256m" java-vm-args="-XX:MaxDirectMemorySize=128M"/>
                        <property name="sun.java2d.noddraw" value="true"/>
                        <jar href="http://www.angelfire.com/indie/kcsoft/orbexplor.jar" download="eager" main="true"/>
                        <jar href="http://jogamp.org/deployment/webstart/jar/gluegen-rt.jar" download="eager" main="false"/>
                        <jar href="http://jogamp.org/deployment/webstart/jar/jogl.all.jar" download="eager" main="false"/>
                </resources>
                <application-desc main-class="OrbitalExplorer.orbitalExplorerApp" />
        </jnlp>

error recieved:
ExitException[ 3]JNLPException[category: Launch File Error : Exception: java.lang.Exception: JNLP not an applet, nor a JavaFX application : LaunchDesc:
<jnlp spec="1.0+" href="http://www.angelfire.com/indie/kcsoft/oe.jnlp">
  <information>
    <title>Orbital Explorer</title>
    <vendor>Casey Kneale</vendor>
    <homepage href="http://www.realchemist.zxq.net/"/>
    <description>Atomic orbital demonstrations</description>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <update check="always" policy="always"/>
  <resources>
    <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="32m" max-heap-size="256m" java-vm-args="-XX:MaxDirectMemorySize=128M"/>
    <property name="sun.java2d.noddraw" value="true"/>
    <jar href="http://www.angelfire.com/indie/kcsoft/orbexplor.jar" download="eager" main="true"/>
    <jar href="http://jogamp.org/deployment/webstart/jar/gluegen-rt.jar" download="eager" main="false"/>
    <jar href="http://jogamp.org/deployment/webstart/jar/jogl.all.jar" download="eager" main="false"/>
  </resources>
  <application-desc main-class="OrbitalExplorer.orbitalExplorerApp"/>
</jnlp> ]
        at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
        at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:722)

---------------------------------------------------------------------------------------------------------------------------------------------------------------
I have also tried this(Which used to work for the old version of jogl back in 2009 using jogl-core.jar):

URL : http://realchemist.zxq.net/pages/Applets/test3.html
CODE: (Left carrots omitted again)
applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
      width="256"
      height="320"
      archive="http://jogamp.org/deployment/webstart/jar/applet-launcher.jar,
                                http://jogamp.org/deployment/webstart/jar/jogl.all.jar,
                                http://jogamp.org/deployment/webstart/jar/gluegen-rt.jar,
              http://www.angelfire.com/indie/kcsoft/orbexplor.jar">
   param name="codebase_lookup" value="false">
   param name="subapplet.classname" value="OrbitalExplorer.orbitalExplorerApp">
   param name="subapplet.displayname" value="Orbital Explorer Test">
   param name="noddraw.check" value="true">
   param name="progressbar" value="true">
   param name="jnlpNumExtensions" value="1">
   param name="jnlpExtension1" value="http://jogamp.org/deployment/webstart/jogl-awt.jnlp">
/applet>

It says "starting orbitalexplorer" but it never starts...
I'm willing to work through this tooth and nail but I'm begining to think jogl2.0 is broken... Any ideas?
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Completely willing to provide code as well. It's possible it's my actual programming at this point.