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.
Regards, - Neha [ November 26, 2004: Message edited by: Neha D ]
Joined: Jun 10, 2004
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 >
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.