Forum Stats

  • 3,827,397 Users
  • 2,260,770 Discussions
  • 7,897,225 Comments

Discussions

Applet doesn't show after plugin update & using JNLP, no errors

814117
814117 Member Posts: 9
edited Nov 17, 2010 5:30PM in Java Web Start & JNLP
We have an applet that worked after the plugin update, then I wrote the JNLP file and can't get it working, it seems to be loading but doesn't show anything. I have tried and searched for possible errors but doesn't seem to be any obvious error for me. Also JaNeLA doesn't give any errors. When I try to load the applet I can see how open two java consoles (maybe this is an error?), in the first console the last output is:
network: Created version ID: 1.0+
network: Created version ID: 6.0.18
basic: Progress indicator deleted: null
And in the second:
basic: Subprogram loaded.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 309262 us, pluginInit dt 2161125 us, TotalTime: 2470387 us
basic: Loading Java Miniapplication
basic: Loading Java Miniapplication
The jnlp file I wrote is this:
<?xml version="1.0" encoding="utf-8"?>
<jnlp codebase="http://genomedu.net/applet/applet/" href="jvrmed_applet.jnlp">
  <information>
    <title>JApplet demo</title>
    <vendor>Jungle waa</vendor>
    <homepage href="http://funforyou.net/"/>
    <description>This is a demo</description>
    <offline-allowed/>
  </information>

    <resources>
      <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
      <jar href="http://download.java.net/media/applet-launcher/applet-launcher.jar"/>
      <jar href="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar"/>
      <jar href="http://download.java.net/media/gluegen/webstart/gluegen-rt.jar"/>
      <jar href="http://download.java.net/media/java3d/webstart/release/vecmath/latest/vecmath.jar"/>
      <jar href="http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dcore.jar"/>
      <jar href="http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dutils.jar"/>
      <jar href="pixelmed.jar"/>
      <jar href="gdata-core-1.0.jar"/>
      <jar href="gdata-media-1.0.jar"/>
      <jar href="gdata-photos-2.0.jar"/>
      <jar href="gdata-photos-meta-2.0.jar"/>
      <jar href="google-collect-1.0.jar"/>
      <jar href="mail-1.4.3.jar"/>
     <jar href="jvrmed.jar" main="true"/>
   <extension name="jogl" href="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp"/>
    </resources>

  <applet-desc 
      name="JVRMed_app"
      main-class="vrmed.app.jVRMed.JVRMed_app"
      width="793" 
      height="563">
  </applet-desc>
</jnlp>

And the applet tag in the html is:

<applet name="jvrmed" code="org.jdesktop.applet.util.JNLPAppletLauncher"
      width=793
      height=563 >
   <param name="jnlp_href" value="http://genomedu.net/applet/jvrmed_applet.jnlp">
</applet>
The old applet tag that launched the applet before the plugin update:
<applet name="jvrmed" code="org.jdesktop.applet.util.JNLPAppletLauncher"
      width=793
      height=563
      archive="http://download.java.net/media/applet-launcher/applet-launcher.jar,
               http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar,
               http://download.java.net/media/gluegen/webstart/gluegen-rt.jar,
	       http://download.java.net/media/java3d/webstart/release/vecmath/latest/vecmath.jar,
	       http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dcore.jar,
               http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dutils.jar,
	       pixelmed.jar,
	       gdata-core-1.0.jar,
	       gdata-media-1.0.jar,
	       gdata-photos-2.0.jar,
	       gdata-photos-meta-2.0.jar,
	       google-collect-1.0.jar,
	       mail-1.4.3.jar,
               jvrmed.jar">
   <param name="codebase_lookup" value="true">
   <param name="subapplet.classname" value="vrmed.app.jVRMed.JVRMed_app">
   <param name="subapplet.displayname" value="jVRMed">
   <param name="noddraw.check" value="true">
   <param name="progressbar" value="true">
   <param name="jnlpNumExtensions" value="1">
   <param name="jnlpExtension1"
          value="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp">
   <param name="idsession" value="jvrmed_snaps">
   <param name="idprofile" value="1">
</applet>
I know there are many extra parameters in the old version, I have deleted them for debugging because there was the same result with them. What really bothers me is that I don't get any error and the java process is running while tries to load the applet. Anyone had a similar experience and can give a clue?
Tagged:

Answers

  • Hi,

    since JRE 6u21 the JNLPAppletLauncher doesn't work anymore.

    The Java 3D's jars and native libraries hosted by Oracle.Sun can be accessed by including the extension http://download.java.net/media/java3d/webstart/release/java3d-latest.jnlp. More details can be found here : Java 3D Web Start Release https://j3d-webstart.dev.java.net/release/index.html

    See also the example 'H'weight & L'weight in Harmony' http://www.interactivemesh.org/testspace/appletpropelleruniverse1200x800_J3D.html and search in the Java 3D forum http://www.java.net/forums/javadesktop/java-desktop-technologies/java-3d

    This is an attempt to adapt your JNLP file :
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp codebase="http://genomedu.net/applet/applet/" href="jvrmed_applet.jnlp">
      <information>
        <title>JApplet demo</title>
        <vendor>Jungle waa</vendor>
        <homepage href="http://funforyou.net/"/>
        <description>This is a demo</description>
        <offline-allowed/>
      </information>
     
      <resources>
        <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
        <!-- !!! Includes the remote Java 3D / JOGL libraries !!! -->
        <extension href="http://download.java.net/media/java3d/webstart/release/java3d-latest.jnlp"/>
        <jar href="pixelmed.jar"/>
        <jar href="gdata-core-1.0.jar"/>
        <jar href="gdata-media-1.0.jar"/>
        <jar href="gdata-photos-2.0.jar"/>
        <jar href="gdata-photos-meta-2.0.jar"/>
        <jar href="google-collect-1.0.jar"/>
        <jar href="mail-1.4.3.jar"/>
        <jar href="jvrmed.jar" main="true"/>
        <property name="sun.awt.noerasebackground" value="true"/>  
        <property name="sun.awt.erasebackgroundonresize" value="true"/>  
      </resources>
     
      <applet-desc 
          name="JVRMed_app" main-class="vrmed.app.jVRMed.JVRMed_app" width="793" height="563">
      </applet-desc>
    </jnlp>
     
    Applet tag:
    
    <!-- please check if codebase="??" is needed -->
    <applet name="jvrmed" width=793 height=563 >
       <param name="jnlp_href" value="http://genomedu.net/applet/jvrmed_applet.jnlp">
    </applet>
    August
    InteractiveMesh
  • 814117
    814117 Member Posts: 9
    edited Nov 15, 2010 12:05PM
    Thanks for the help.

    I was missing that JNLPAppletLauncher doesn't work. But how it is that in [https://jogl-demos.dev.java.net/applettest-jnlp.html] uses JNLPAppletLauncher and is working?

    I have added the extension for Java 3D's jars and native libraries, also with others that were necessaries. Also have done the changes you told me in the applet tag and in the JNLP and still get the same result, it appears the java logo loading and without changing. What can be the reason for the applet to keep in this state without giving any error? How can I obtain some info? In the main jar, it stays idle awaiting to the applet to be active, maybe it's something that is not loaded correctly throught the jnlp?

    Edited by: 811114 on 15/11/2010 09:03
  • Does the example 'H'weight & L'weight in Harmony' http://www.interactivemesh.org/testspace/appletpropelleruniverse1200x800_J3D.html run on your system ? August
  • 814117
    814117 Member Posts: 9
    With L'weight in Harmony' like this one [http://www.interactivemesh.org/testspace/applettuxcube900x900_J3D.html] there is a class not found exception with the applet. And with the H'weight in Harmony' doesn't show anything after the header of the page.
  • Please, provide us with all relevant information about your system like: os, 32/64 bit, browser, JRE version, etc.. I suppose your browser doesn't support Applet/JNLP.

    Does your browser start any of the 'Java 3D/Java Web Start' samples?

    The JOGL demo you refer to https://jogl-demos.dev.java.net/applettest-jnlp.html doesn't run on my system (Win XP 32 bit, Firefox 3.6, JRE 6u22) because the JNLPAppletLauncher is being used.

    TuxCubeGrayscale and DistortStringReflection still use the outdated JNLPAppletLauncher and therefore don't run on JRE6u21+.

    The sample 'Applet JNLP Text3D' http://www.interactivemesh.org/testspace/appletJNLPlaunchtest.html prints a lot of useful system information into the Java console provided that it runs.

    August
  • 793415
    793415 Member Posts: 7,279 Bronze Badge
    The JNLP for an embedded Plug-In 2 Applet should not specify a codebase. That might not be the problem, it just stuck out to me.
  • 814117
    814117 Member Posts: 9
    The os I've been trying is in windows 7 - 64 bits,with firefox the last version I think, and also with Archlinux 32 bits with both Chrome(8) & Firefox(3.6), my version of jre is 6u22-2.

    The sample 'Applet JNLP Text3D' works great on my system (tried with linux and chrome), but the 'Java 3D/Java Web Start' samples don't work through the applet, downloading the jnlp and running with javaws works great by the way.
This discussion has been closed.