File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Problem in jre1.5 with IE Browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Problem in jre1.5 with IE Browser" Watch "Problem in jre1.5 with IE Browser" New topic

Problem in jre1.5 with IE Browser

Neha D
Ranch Hand

Joined: Oct 12, 2004
Posts: 32

I am using jdk1.5 for my application. It has compiled properly & is also running from appletviewer properly. But when I make a jar of it & try to load the applet thr' the browser which uses the jre1.5, it tells me applet notinited.
Can anyone plz help me out & suggest that what should I do to load the applet thr' the browser.

Your help will be appreciated.


- Neha
[ November 26, 2004: Message edited by: Neha D ]
Srinivasa Kadiyala
Ranch Hand

Joined: Jun 10, 2004
Posts: 237
add a correct applet plug-in to your applet tag.

May be the browser is compatible for 1.4 applet.

I hv given the sample code here.check with this.u hv to change where ever it is applicable.

<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 500 HEIGHT = 50 codebase=",3,0,0">
<PARAM NAME = CODE VALUE = xyz.class >

<PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.4">
<EMBED type="application/x-java-applet;version=1.3" java_CODE = xyz.class java_ARCHIVE = "xyz.jar" WIDTH = 500 HEIGHT = 50 pluginspage="">
<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!</COMMENT>
<APPLET CODE = xyz.class ARCHIVE = "xyz.jar" WIDTH = 500 HEIGHT = 50 >


Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Moving to the Applet forum...

GenRocket - Experts at Building Test Data
Neha D
Ranch Hand

Joined: Oct 12, 2004
Posts: 32
Hi Puthriah,

Thanx for the code. But I have the same code. Now the problem is that I am able to load the applet some times & sometimes it is not allowing me to load it.
When it is loaded it shows me the sign in screen. After I enter my login it shows me all the other screens properly. But for all operations it gives me ***** Failure ****** Invalid Session. Please logoff & logon. And in logs it is showing me as No session present.

The browser is using jre 1.4 as well as jre 1.5 accordingly. It takes this jre version properly but for both these versions initially it says Applet notinited & gives the same exceptions as Applet tag missing CODE parameter.

Can you plz suggest as to why is this happening??


- Neha.
I agree. Here's the link:
subject: Problem in jre1.5 with IE Browser
It's not a secret anymore!