Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem after signing Applet ,Don't know what is mistake ?

 
Bibhishan Karadkar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My application is running well in Appletviewer but problem with Browser
I have signed an Applet ,I am giving details below with html file
I store my HTML file at E:\Bibhishan\LiveUpdate> & here I generate a key with keytool
Here is my applet(.class files) ,.jar file & HTML file . Actually in my application I am finding my location and then write particular file on that location actually this is Live-Update of my given software to client this all things are OK with appletviewer but problem with browser . For running this application I already changed my .java.policy file so it is running ,Please let me know what will be the problem & correct me If I am doing mistake

E:\Bibhishan\LiveUpdate>keytool -genkey -keyalg rsa -alias bbkey
Enter keystore password: ******
What is your first and last name?
[Unknown]: Bibhishan Karadkar
What is the name of your organizational unit?
[Unknown]: Byruns reserch lab
What is the name of your organization?
[Unknown]: Unity Software
What is the name of your City or Locality?
[Unknown]: Pune
What is the name of your State or Province?
[Unknown]: MH
What is the two-letter country code for this unit?
[Unknown]: IN
Is <CN=Bibhishan Karadkar, OU=eth reserch lab, O=Dishnet-DSL, L=Pune, ST=MH, C=IN> co
[no]: yes
Enter key password for <bbkey>
(RETURN if same as keystore password): ******
E:\Bibhishan\LiveUpdate>keytool -export -alias bbkey -file bbcert.crt
Enter keystore password: ******
Certificate stored in file <bbcert.crt>
E:\Bibhishan\LiveUpdate>jar cvf bbjar.jar ComuAppfinder.class Searchapp.class
added manifest
adding: ComuAppfinder.class(in = 3355) (out= 1918)(deflated 42%)
adding: Searchapp.class(in = 1795) (out= 1119)(deflated 37%)
E:\Bibhishan\LiveUpdate>jar tvf bbjar.jar
0 Tue Nov 06 14:07:36 GMT+05:30 2001 META-INF/
68 Tue Nov 06 14:07:36 GMT+05:30 2001 META-INF/MANIFEST.MF
3355 Thu Nov 01 17:42:16 GMT+05:30 2001 ComuAppfinder.class
1795 Thu Nov 01 17:42:16 GMT+05:30 2001 Searchapp.class

E:\Bibhishan\LiveUpdate>jarsigner bbjar.jar bbkey
Enter Passphrase for keystore: ******
E:\Bibhishan\LiveUpdate>jarsigner -verify -verbose -certs bbjar.jar
208 Tue Nov 06 14:09:54 GMT+05:30 2001 META-INF/MANIFEST.MF
261 Tue Nov 06 14:09:54 GMT+05:30 2001 META-INF/BBKEY.SF
968 Tue Nov 06 14:09:54 GMT+05:30 2001 META-INF/BBKEY.RSA
0 Tue Nov 06 14:07:36 GMT+05:30 2001 META-INF/
smk 3355 Thu Nov 01 17:42:16 GMT+05:30 2001 ComuAppfinder.class
X.509, CN=Bibhishan Karadkar, OU=eth reserch lab, O=Dishnet-DSL, L=Pune, ST=MH,
bbkey)
smk 1795 Thu Nov 01 17:42:16 GMT+05:30 2001 Searchapp.class
X.509, CN=Bibhishan Karadkar, OU=eth reserch lab, O=Dishnet-DSL, L=Pune, ST=MH,
bbkey)

s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope
jar verified.
E:\Bibhishan\LiveUpdate>

My HTML file is
<html>
<title> PathFinder </title>
<body>
<h2> Path Finder </h2>
<applet code="ComuAppfinder.class" archive="bbjar.jar" height=360 width=360></applet>
</body>
</html>
I am using
IE5
JDK1.3

Thanks
 
peter johansson
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think IE has a problem with .jar-files, try to pack your classes in a .cab-file instead.
regards,
/Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic