Click to See Complete Forum and Search --> : Starting applet in IE 5.0


mjpell
September 14th, 2000, 11:54 AM
Please tell me why my applet won't start. I get a 'class not found error' no matter what I do with this applet tag. I tried a test applet, where the applet was not defined in a Java package and it started just fine.

Is there something special to do for java packages with IE ?

I'm 100% positive that my package name and class name are correct. The dataccess.cab file is inthe current directory. I've tried specifying the class name with the .class and without, with double-quotes and without, with the package name and without, and every combination I could think of.

email me at mjpell@sol-plus.com and I'll send you the cab file.


<HTML>

Attempting to run dataccess from a signed cab file

<APPLET
code="dataccesstool.gui.DATAccessToolApplet.class"
width=100
height=100>
<PARAM NAME=cabbase VALUE=dataccess.cab>
</APPLET>

</HTML>





My goal here is to run a Swing applet using the Plug-in in IE 5.0 as a trusted applet. I've purchased the Authenticode digital certificate from Verisign, Inc. I've figured out how to create the CAB file and to sign the CAB file. Just haven't figured out how to run the crazy thing yet.
Any suggestions would be GREATLY appreciated. I've spent hours reading the MS site, and am not getting anywhere.

Thanks,
Mike "losing hair in clumps" P.

poochi
September 14th, 2000, 11:59 AM
> <PARAM NAME=cabbase VALUE=dataccess.cab>

I never tried with cab files. But we have signed our jar file and it's working perfectly fine.
Did you try it with jar file ?

mjpell
September 14th, 2000, 12:26 PM
Thanks for the quick reply!

How did you sign the .jar file? I now have the Authenticode dig cert from Verisign.
And how did you create the .jar? Icreated the cab file with cabarc.

Could you post the .html tags?

Thanks!

mjpell
September 14th, 2000, 12:55 PM
Update.....
I at least have Java starting and IE is recognizing the class. Now my problem is that IE doesn't seem to recognize that I've signed the CAB. I get the following exception:


java.security.AccessControlException: access denied (java.net.SocketPermission Corpweb-elvis5 resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)




Here's my .html


<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 300 HEIGHT = 75
codebase="plug-in_install.html">
<PARAM NAME = CODE VALUE = dataccesstool.gui.DATAccessToolApplet.class >
<PARAM NAME=cabbase VALUE=dataccess.cab>
<PARAM NAME="scriptable" VALUE="true">
<PARAM NAME="supportPhoneNumber" VALUE="(317) 276-9999">
<PARAM NAME="MAYSCRIPT" VALUE="true">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">

</OBJECT>




My .cab file tested as successfully signed, and I used 'lowx' for the permissions.

This is also the exact same problem I had when trying to use a signed .jar file. IE didn't recognize it as being signed, or at least didn't recogize the permission level ???????

Any suggestions?
Thanks,

mjpell
September 14th, 2000, 01:00 PM
Update again...

It appears that I'm simply getting the Plug-in started, and it hasn't even got to my classes yet.....

So what is the Plug-in doing that would cause the security exception? Maybe the Plug-in doesn't recognize the signed .cab file????? Man, IE is such a pain.....