Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / May 2004

Tip: Looking for answers? Try searching our database.

signed applet, cannot update it with newer code

Thread view: 
b83503104 - 02 May 2004 14:03 GMT
Hi,
I used the following 5 steps to sign an applet:
javac SimplePaint.java
jar cvf SimplePaint.jar SimplePaint.class
keytool -delete -alias SimplePaint
keytool -genkey -alias SimplePaint -validity 365
jarsigner SimplePaint.jar SimplePaint

After that, I modified the .java code, and did the 5 steps again, but
it seems like it was still the old code running, instead of the new
one.

So is it that I have to "unsign" the old applet first?  Or should I
close and then open IE browser, instead of just "ctrl+reload"?

Thanks!
Michael Amling - 02 May 2004 14:17 GMT
> Hi,
> I used the following 5 steps to sign an applet:
[quoted text clipped - 10 lines]
> So is it that I have to "unsign" the old applet first?  Or should I
> close and then open IE browser, instead of just "ctrl+reload"?

  If you haven't opened and closed the browser, the applet is probably
being fetched from cache. I've seen applets kept in browser cache even
when the html page containing them has been changed and reloaded.
  I don't think signing is affecting this.

--Mike Amling
Roedy Green - 03 May 2004 01:02 GMT
>> After that, I modified the .java code, and did the 5 steps again, but
>> it seems like it was still the old code running, instead of the new
>> one.

see http://mindprod.com/jgloss/caching.html

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Roedy Green - 03 May 2004 01:20 GMT
>>> After that, I modified the .java code, and did the 5 steps again, but
>>> it seems like it was still the old code running, instead of the new
>>> one.

IT is a good idea to have the program display a version number you
incremented on every compile so you can detect stuck caches or
failures to bundle the new code.

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.