Results 1 to 4 of 4
  1. #1
    sarwar1234 is offline Member
    Join Date
    Sep 2010
    Posts
    56
    Rep Power
    0

    Default Warnings: Running Applet

    Hello...

    I have a java applet program that uses external libraries jar files as well....
    The applet's jar file is called in a html file..... And I am signing the applet's jar file using the keytool in the cmd...

    The program runs fine But I get 4 to 5 times the following warning before the applet is launched...
    Java Code:
    Applet's digital signature cannot be verified. Do you want to run this applet ?
    Any idea on how to get rid of these warnings.....

    Many Thanks...

    Regards,
    Sarwar

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    8

    Default

    Yeah, get it signed by an actual signing authority rather than self-signing. Or get the "client" to install your certificate into their "trusted" store.

  3. #3
    sarwar1234 is offline Member
    Join Date
    Sep 2010
    Posts
    56
    Rep Power
    0

    Default

    Hello,

    I need to describe the problem in more details....

    I am using windows vista and the Eclipse Helios for the development of a Java project which is essentially a JApplet.... The applet can read and write files to the local file system....

    1) My project uses 3 external jar files... And I am signing them and verifying that they are signed before I add those external jars to my project...

    2) When I develope the project in Eclipse and run it as applet it works fine.... All of the project class files and the resources are in the folder in my user home directory under the eclipse work space....

    3) Then I export the jar file for the project... And before that I created the manifest file and added that to the jar file as well.... where the manifest contains the following....
    Java Code:
    Manifest-Version: 1.0
    Main-Class: WindSpeedAnalysis

    4) Then I sign the applet jar file using the same method and verified that jar is signed.....

    5) In write the html code for applet:

    Java Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <title>MyWindReport</title>
        
    	<meta http-equiv="pragma" content="no-cache">
    	<meta http-equiv="cache-control" content="no-cache">
    	<meta http-equiv="expires" content="0">    
    	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    	<meta http-equiv="description" content="This is my page">
      </head>
      
      <body>
       <applet code = "WindSpeedAnalysis" 
        archive = "WindSpeedAnalysisJar.jar,commons-csv-20070724.jar, krysalis-jCharts-1.0.0-alpha-1.jar,iText-5.0.4.jar"
        width = "100%" 
        height = "100%" >
        
        </applet>
      </body>
    </html>

    6) Then I put the html file, applet's signed jar file along with certificate, and also the external signed jar files, and the resource folder in the same folder....

    Now When I run the html using the browser, I get the security warnings as described above....

    Any idea, of how to solve this issue....

    Many Thanks.... :)


    Best Regards,

  4. #4
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    8

    Default

    See my previous post. And if you don't know what a CA is then you need to do some general googling about digital signatures / certificates.

Similar Threads

  1. Applet not running in
    By sgtmac1995 in forum Java Applets
    Replies: 0
    Last Post: 10-18-2010, 04:36 PM
  2. running an applet
    By ksatty in forum Java Applets
    Replies: 4
    Last Post: 01-08-2010, 10:12 AM
  3. Java Applet Not Running
    By kahaj in forum Java Applets
    Replies: 4
    Last Post: 10-08-2009, 12:11 AM
  4. First Applet not running on browsers
    By Centinela66 in forum Java Applets
    Replies: 11
    Last Post: 10-09-2008, 01:58 PM
  5. Getting url of page applet is running on
    By damounh in forum Java Applets
    Replies: 1
    Last Post: 05-09-2008, 05:49 PM

Posting Permissions

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