Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Applet compatibility issues for JRE 1.6

843807Apr 24 2009 — edited Apr 30 2009
Hi guys,

I have a Java Applet that was written years ago in jdk 1.4 and is no longer working for clients who've downloaded JRE 1.6. It worked previously for JRE 1.5.

The Server: JDK 1.4
The Clients: JRE 1.6

My scenario is an old application being hosted on tomcat 4129 under JDK 1.4. The applet was signed in 1.4, etc. Anyhow, since the clients have updated to 1.6 they've been getting all kinds of NullPointerException errors that don't show up in JDK 1.5. I would LIKE to re-build this but for the moment I'm looking for a band-aid to keep it running for a little while longer.

My Applet sits in a web application that uses FRAMES, so the Applet is in a FRAME.

my applet:
<OBJECT 
    classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codebase = "http://java.sun.com/update/1.4.2/jinstall-1_4-windows-i586.cab#Version=1,4,0,0"
    WIDTH = 100% HEIGHT = 100%>
    <PARAM NAME="name"          VALUE="Map">
    <PARAM NAME="mayscript"     VALUE="true">
    <PARAM NAME="scriptable"    VALUE="true">	
    <PARAM NAME="code"          VALUE="ca.gc.agr.gtd.jaims.Map">
    <PARAM NAME="type"          VALUE="application/x-java-applet;version=1.4">
    <PARAM NAME="cache_option"  VALUE="Plugin">
    <PARAM NAME="cache_archive" VALUE="java/jaims.jar,java/gtd.jar,java/imf-aims.jar,java/jts.jar,java/xerces.jar,java/xmlParserAPIs.jar,java/geo.jar,java/javadbf.jar,java/iText.jar">
    <COMMENT>
      <EMBED 
        type = "application/x-java-applet;version=1.4" \
        CODE = "ca.gc.agr.gtd.jaims.Map"               \
        WIDTH = 100%                                   \
        HEIGHT = 100%                                  \
	mayscript = true                               \
        scriptable = true                              \
        pluginspage = "http://java.sun.com/products/plugin/index.html#download">
	<NOEMBED>
          alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
          Your browser is completely ignoring the <APPLET> tag!
        </NOEMBED>
      </EMBED>
    </COMMENT>
  </OBJECT>
And it is being loaded by a javascript call:
function waitForApplet() {
    setTimeout("isAppletLoaded()", intSleepTime);
    document.applets[0].showMapWhenReady();
  }
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2009
Added on Apr 24 2009
1 comment
279 views