This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in jre1.5 with IE Browser

 
Neha D
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"-->
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Applet forum...
 
Neha D
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic