This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Problem in jre1.5 with IE Browser" Watch "Problem in jre1.5 with IE Browser" New topic
Author

Problem in jre1.5 with IE Browser

Neha D
Ranch Hand

Joined: Oct 12, 2004
Posts: 32
Hi,

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.

Thanx.

Regards,
- 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.


<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.0 -->
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 500 HEIGHT = 50 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
<PARAM NAME = CODE VALUE = xyz.class >
<PARAM NAME = ARCHIVE VALUE = "xyz.jar" >

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

</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->


Srini
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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??

Thanx.

Regards,
- Neha.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in jre1.5 with IE Browser