Java 1.5 and 1.6 stop my browser based app from running.

I have an application that uses IE 6 on WinXP sp1 and sp2 (different machines, same problem).

I am running a Browser based testing application that uses frames and a small java applet for a pause to be used by Javascript. It is running an activeX plug in (written in C++) in one frame.

It runs fine using the 1.4.2 JRE but when I load the 1.5.0._11 or the 1.6 JRE's from Sun the applicaiton does not work in the framed version. If I use a version that runs the parts in seperate windows it works fine.

Does anyone know what might be different between 1.4.2 and 1.5 and 1.6 that might stop a browser based applet from working.

I have not re-compiled the applet under 1.5, maybe that is an issue, but I thought the JVM would be compatible with the older byte code.

The application starts with loading the plugin-waiting for an ok semaphore then does a series of SetVars(..) to initialize the application.

The 1.4.2 jre running works ok in the frame and no frame ways of running the system. The 1.5 and 1.6 jre versions run in no frame mode but not in frame mode. The plug in loads but the initialization does not complete.

If I am running 1.5 say see that it does not work. then un-install 1.5 (it automatically goes back and points to 1.4.2 in the browser for applets). and run again, it runs fine. So it is definitely the JRE version that is where there is an incompatibility.

The small (and only) Java code I am using is a pause applet:

import java.awt.*;

import java.applet.*;

import java.awt.event.*;

/**

* Simply calls <code>Thread.sleep( (long) timeInMillis )</code>.

*

* This method is needed because Javascript has no sleep

* functionality. Also, the argument must be a float

* because that is what Javascript's Number type is

* automaticly converted to when it calls this method.

*

*/

publicclass SleepAppextends java.applet.Applet

{publicvoid init()

{

//System.out.println("-SleepApp Awake");

}

publicvoid sleep(float timeInMillis)throws InterruptedException{

Thread.sleep( (long) timeInMillis );

}

publicvoid start(){

//ystem.out.println("-SleepApp start");

}

publicvoid stop(){

//System.out.println("-SleepApp stop");

}

}//end class SleepApp

If anyone has a clue to what the problem is with the different version I would appreciate it.

Thanks

John Putnam

[3512 byte] By [JohnFPutnama] at [2007-11-27 0:45:46]
# 1

We have a similar problem here.

Our browser based applet works fine with JRE 1.4.2 and 1.4.1. If we upgrade to either 1.5 or 1.6.0_01, however, the loading of the browser on IE 6 just hangs. No error in Java Console, by the way.

It works OK on Vista with JRE 1.6.0-oem, though.

Any help will be appreciated.

happy_coding0a at 2007-7-11 23:11:18 > top of Java-index,Desktop,Runtime Environment...
# 2

I was in the same trouble with my applet .. and I found the problem (worksforme (c)).

My applet was embedded in a html page using the "applet" tag which seems to be deprecated.

I've modified my html page to use the "object" tag instead and the applet runs well under jre 1.4,1.5 and 1.6 .. in frame mode or not.

Hope it helps.

Ga雔.

gchardona at 2007-7-11 23:11:18 > top of Java-index,Desktop,Runtime Environment...