File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Installing IE7 broke my applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Installing IE7 broke my applet" Watch "Installing IE7 broke my applet" New topic

Installing IE7 broke my applet

Lanny Gilbert
Ranch Hand

Joined: Jun 11, 2002
Posts: 104
My applet ran just fine with IE6. When our corporate IT group upgraded us to IE7, an error box like this pops up.


Microsoft Visual C++ Runtime Library

Runtime Error!

Program C:\Program Files\Internet Explorer\iexplore.exe

abnormal program termination


Anybody else seen this?? Here is my code for including the applet (I've changed the proprietary stuff)

<OBJECT classid="clsid:CAFEEFAC-0015-0000-0007-ABCDEFFEDCBA"
width="950" height="595" align="baseline"
codebase="http://<Internal Site for downloading JRE>/Sun_J2RE_1.5.0_07.EXE#Version=1,5,0,7">

<APPLET code="AppName.class" align="baseline"
width="950" height="595">
<PARAM NAME="java_code" VALUE="AppName.class">
<PARAM NAME="java_type" VALUE="application/x-java-applet;jpi-version=1.5.0,7">
<PARAM NAME="scriptable" VALUE="true">
<PARAM name="name" value="AppName">
<PARAM name="id" value="AppName">

<PARAM name="archive" value="LIST OF JARS">

<PARAM NAME="cache_option" VALUE="Plugin">
<PARAM name="cache_archive" value="LIST OF JARS">
No Java 2 SDK, Standard Edition v 1.5.0_07 support for APPLET!!


Here is an example of an internal applet that WORKS!, because it uses the IE default JRE of 1.4.2_06

classid = "clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA"
WIDTH = "600" HEIGHT = "336" NAME = "AppName" >
<PARAM NAME = "type" VALUE = "application/x-java-applet;jpi-version=1.4.2,6">
<PARAM NAME = "scriptable" VALUE = "false">
<PARAM NAME="cache_archive" VALUE="ifxmsg.jar,ifxjdbc.jar,tts.jar">
<PARAM NAME="cache_option" VALUE="Plugin">
<PARAM NAME="cache_version" VALUE=",,1.4.2.B">

type = "application/x-java-applet;jpi-version=1.4.2,6" \
cache_archive="LIST OF JARS" \
cache_option="Plugin" \
cache_version=",,1.4.2.B" \
JAVA_CODEBASE = "/comp/javaplugin/j2re-1_4_2_06-windows-i586-p.exe#Version=1,4,2,6" \
NAME = "JTTSApplet" \
WIDTH = "600" \
HEIGHT = "336" \
scriptable = false \
pluginspage = "/comp/javaplugin/index.html" >

Either you have no JDK 1.4 support for the applet, or your JRE is
not installed correctly.
<a href="index2.html">Click here</a> for an alternative page that may work.
Lanny Gilbert
Ranch Hand

Joined: Jun 11, 2002
Posts: 104
I was able to fix this issue by removing the <NOEMBED> and </NOEMBED> tags. Hopefully, this will help someone else in the future.
It is sorta covered in the JavaRanch Style Guide.
subject: Installing IE7 broke my applet