[Solved]Applet deploy serious problems.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Solved]Applet deploy serious problems.

cupcakey
This post was updated on .
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.
Reply | Threaded
Open this post in threaded view
|

Re: Applet deploy serious problems.

Sven Gothel
Administrator
On 10/27/2012 01:34 AM, cupcakey [via jogamp] wrote:
> 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.
>
> URL : http://realchemist.zxq.net/pages/Applets/test.html
> code:
>

Please read (again):
  <http://jogamp.org/wiki/index.php/Using_JOGL_in_a_Java_applet>

.. or simply checked the referenced demo applet page w/ the tags:

  NApplet (PREFERRED!!):
    <http://jogamp.org/deployment/jogamp-current/jogl-applet-runner-newt-gears-normal-napplet.html>

  Dual (JNLP-Applet + Our JNLPAppletLauncher):
    <http://jogamp.org/deployment/jogamp-current/jogl-applet-runner-newt-gears-normal.html>

So .. in short, for a long while we have renamed the JAR files
to be consistent:
  jogl.all.jar  -> jogl-all.jar
  jogl-all.jnlp -> jogl-all-awt.jnlp

Please try again .. sorry for your inconvenience.

Always check our demos, whether they are (still) running
and then .. whats the difference ..

~Sven

>    <comment>
>      <embed code="org.jdesktop.applet.util.JNLPAppletLauncher"

Note: I would _not_ use the JNLPAppletLauncher anymore
      but the new NApplet launching method!

>           width="256" height="320"
>           type="application/x-java-applet;version=1.6"
>           pluginspage="http://java.sun.com/javase/downloads/ea.jsp"
> <http://java.sun.com/javase/downloads/ea.jsp%22>
>           archive="http://jogamp.org/deployment/webstart/jar/gluegen-rt.jar,
>                http://jogamp.org/deployment/webstart/jar/jogl.all.jar,

now use -> jogl-all.jar

>                http://www.angelfire.com/indie/kcsoft/orbexplor.jar"
> <http://www.angelfire.com/indie/kcsoft/orbexplor.jar%22>
>           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"

use -> jogl-all-awt.jnlp !

> <http://jogamp.org/deployment/webstart/jogl-awt.jnlp%22>
>           java_arguments="-Dsun.java2d.noddraw=true"
>           jnlp_href="http://www.angelfire.com/indie/kcsoft/oe.jnlp"
> <http://www.angelfire.com/indie/kcsoft/oe.jnlp%22>>
>         <noembed>Sorry, no Java support detected.</noembed>
>      
>    </comment>
>
>

>
> I'm willing to work through this tooth and nail but I'm begining to think
> jogl2.0 is broken... Any ideas?

Should work when reflecting the above .. since all our demos do.

~Sven



signature.asc (907 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Applet deploy serious problems.

cupcakey
In reply to this post by cupcakey
I'm so happy right now I could kiss you.

No apologies needed! Whew!
Reply | Threaded
Open this post in threaded view
|

Re: Applet deploy serious problems.

gouessej
Administrator
Lol I'm really happy for you :) You were trying to make it work for days, I understand your position.
Julien Gouesse | Personal blog | Website