Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Download Extension

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Halo,
I got another problem, and try to get comment from you all, so decide which method is better.
Now i need to copy some JAR file into the EXT directory before i run the applet....
i want the applet check the client side see whether got the require JAR file is inside the ext directory, if exist then return else the applet will download the JAR file from server and put inside the EXT directory and return...
so got any idea how to do this..?
Another Question is after i copy the require JAR into EXT library, do i need to restart PC so that installation that effect?
Thanks for comment.=)
 
Saloon Keeper
Posts: 22253
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets don't work that way. But there's something better.
When you reference a web page containing an applet, the browser will download the applet the first time. Thereafter a copy is cached on the client machine and no further downloads need be done.
It's not quite that simple, since the browser determines whether or not to use a cached copy and how long a copy will remain in cache, but the important thing is that you don't have to write your own caching mechanism. And, in fact, you'd find it very difficult to do so, since the kind of behaviour you're describing is a lot like how viruses and malware install themselves, and Java is designed to prevent such activities.
Unlike Applets, Java Applications can be installed manually. However it's more convenient to make the Application available via Java WebStart, which will automatically install the Application and will check for updates as needed.
 
Did you just should on me? You should read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic