Roadmap for JNLPAppletLauncher?

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

Roadmap for JNLPAppletLauncher?

Martin
Hi,

First, thanks to Wade for http://jogamp.org/wiki/index.php/Using_JOGL_in_a_Java_applet which saved me hours of work.

I wonder if there is a roadmap on the JNLP applet launcher, because I see a couple of things to improve (don't know how hard is the work):
1) support for relative path in the codebase attribute
2) improving progress monitor: it seems the progress bar does not show the complete loading process, since sometime I may wait 1 minute before my own applet actually starts
3) improving error monitor: once something fail, I have no report, and I would like to have a popup explaining the cause (e.g. when I try to load an invalid jar, such as http://jogamp.org/deployment/v2.0-rc10/jar/jogl-all.jar which is a jar containing a jar).
4) simplify the main JNLP (especially the duplicate part)

I can't engage to work on it, but I would like :)

Regards,
Martin
Reply | Threaded
Open this post in threaded view
|

Re: Roadmap for JNLPAppletLauncher?

Sven Gothel
Administrator
On 08/20/2012 11:27 PM, Martin [via jogamp] wrote:
> Hi,
>
> First, thanks to Wade for
> http://jogamp.org/wiki/index.php/Using_JOGL_in_a_Java_applet which saved me
> hours of work.
>
> I wonder if there is a roadmap on the JNLP applet launcher,

I edited the chapters of:
<http://jogamp.org/wiki/index.php/Using_JOGL_in_a_Java_applet#Applet_web_page>

.. and (at least for my priorities) the future is:

<http://jogamp.org/wiki/index.php/Using_JOGL_in_a_Java_applet#Normal-Applet_using_native-JAR_lib_loading>

and not using the JNLP Applet Launcher at all!

Of course JNLP applets can be used where JNLP is available
however the simple applet w/ native JAR lib loading is
current state of the art. It can also be used as a fallback
mechanism if JNLP applets are more desired (for whatever reason).

Note: the JAR file names changes, i.e. jogl.all.jar -> jogl-all.jar

~Sven


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

Re: Roadmap for JNLPAppletLauncher?

Martin
Hi,

Thanks for the link. This applet declaration is indeed much more compact.

However when trying to run
http://jausoft.com/jogamp/jogl-applet-runner-newt-gears-normal-napplet.html
I have an error message saying class JOGLNewtApplet1Run not found

The same on jogamp site works for linux , but not on win7 64b (the java progress runs endlessly with no error message)
Reply | Threaded
Open this post in threaded view
|

Re: Roadmap for JNLPAppletLauncher?

Sven Gothel
Administrator
On 08/21/2012 10:09 AM, Martin [via jogamp] wrote:

> Hi,
>
> Thanks for the link. This applet declaration is indeed much more compact.
>
> However when trying to run
> http://jausoft.com/jogamp/jogl-applet-runner-newt-gears-normal-napplet.html
> I have an error message saying class JOGLNewtApplet1Run not found
>
> The same on jogamp site works for linux , but not on win7 64b (the java
> progress runs endlessly with no error message)
Well, it works very well here and on other Linux, Windows
and osx (<= 10.8) machines.

Ofc .. we have tested them and I just tried it here to be sure.

http://jausoft.com/jogamp/jogl-applet-runner-newt-gears-normal-napplet.html

Please follow [1] first and save the java trace file,
then follow [2] and also save the java trace file.

[1] follow the FAQ bugreport page regarding applets
    to produce meaningful log files

[2] clear your java/jnlp cache manually
   - java control panel == control panel . java
     -> temporary internet files
         -> view
            -> select all and delete

In case [2] helps in your case, we may have an cache issue here.

Known issues:

Starting an applet w/ v2.0-rc9 _and_ w/ v2.0-rc10
in the same browser (and so often in the same JVM instance)
will not work and result in an indefined behavior.
Workaround would be to add a property in the applet tag
specifying the jogamp version.

~Sven


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

Re: Roadmap for JNLPAppletLauncher?

Martin
Sven Gothel wrote
[1] follow the FAQ bugreport page regarding applets
    to produce meaningful log files
Sorry I can't find that how to in http://jogamp.org/wiki/index.php/Jogl_FAQ.
Am I wrong with the page?
Reply | Threaded
Open this post in threaded view
|

Re: Roadmap for JNLPAppletLauncher?

Martin
In reply to this post by Sven Gothel
Although it still does not work online for the moment, I can have this normal applets working locally.

But I wonder how does native jar selection works? I have adapted your example for an applet with such a structure:
http://domain/dir/demo.html
http://domain/dir/applet-org.jzy3d-0.9.jar
http://domain/dir/jogl2-rc10/[all jogl jars]
http://domain/dir/misc/[my app dependencies]

The below example works but I don't understand how jogl guesses all natives stand in jogl2-rc10/ folder. Any clue?

<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="500" height="500">
        <param name="code" value="com.jzy3d.tools.applets.AppletChart">
        <param name="archive" value="jogl2-rc10/gluegen-rt.jar,
                                jogl2-rc10/jogl-all.jar,
                                misc/opencsv-2.1.jar,
                                                                misc/org.convexhull.jar,
                                                                misc/swt.jar,
                                                                applet-org.jzy3d-0.9.jar">
        <param name="java_arguments" value="-Dsun.java2d.noddraw=true">
        <comment>
                <embed code="com.jzy3d.tools.applets.AppletChart"
                        width="500" height="500"
                        type="application/x-java-applet;version=1.6"
                        pluginspage="http://java.sun.com/javase/downloads/ea.jsp"
                        archive="jogl2-rc10/gluegen-rt.jar,
                    jogl2-rc10/jogl-all.jar,
                    misc/opencsv-2.1.jar,
                                        misc/org.convexhull.jar,
                                        misc/swt.jar,
                                        applet-org.jzy3d-0.9.jar"
                        java_arguments="-Dsun.java2d.noddraw=true">
                        <noembed>Sorry, no Java support detected.</noembed>
                </embed>
        </comment>
</object>
Reply | Threaded
Open this post in threaded view
|

Re: Roadmap for JNLPAppletLauncher?

gouessej
Administrator
It uses system properties to guess the architecture, the OS, etc...
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Roadmap for JNLPAppletLauncher?

Sven Gothel
Administrator
On 08/22/2012 10:28 PM, gouessej [via jogamp] wrote:
> It uses system properties to guess the architecture, the OS, etc...

.. and derives the JAR location/name from the non native parent JAR,
i.e. cuts of '.jar' and adds '-natives-<os.and.arch>.jar'.

http://forum.jogamp.org/JogAmp-Deployment-Enhancements-Automatic-loading-of-native-JARs-Applet-Application-td3362447.html

~Sven


signature.asc (910 bytes) Download Attachment