CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 1999
    Location
    Indianapolis, IN
    Posts
    191

    Starting applet in IE 5.0

    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 [email protected] 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.




  2. #2
    Join Date
    Sep 1999
    Location
    Madurai , TamilNadu , INDIA
    Posts
    1,024

    Re: Starting applet in IE 5.0


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


  3. #3
    Join Date
    Nov 1999
    Location
    Indianapolis, IN
    Posts
    191

    Re: Starting applet in IE 5.0

    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!


  4. #4
    Join Date
    Nov 1999
    Location
    Indianapolis, IN
    Posts
    191

    Re: Starting applet in IE 5.0

    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,


  5. #5
    Join Date
    Nov 1999
    Location
    Indianapolis, IN
    Posts
    191

    Re: Starting applet in IE 5.0

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





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured