This week's book giveaway is in the Java in General forum.
We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line!
See this thread for details.
Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

delete JRE cache

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
is it possible to clear JRE cache by the code?
I ran(from code) example.jar and after that I have created new example.jar but it runs always first jar.

Could you help me please?
 
Master Rancher
Posts: 4600
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think there must be some other problem. If the old jar still exists, can you rename it so that it wouldn't be found? Then create the new one. I suspect that there is a problem creating the new one or the new one is being written to some other folder.
If you create a new jar and issure the java -jar <jarfile> command in the correct folder, java won't go find the old version.
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you talking about the jar file cache kept by the Java Plugin, in other words, applets or JWS applications? If so, check out the Java Plugin control panel; it has several settings for jar file caching, amongst them the option to turn it off completely.
 
manu chaox
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
two app : ( any JWS, any aplet)

1st app run and download else 2nd app (f.e.:example.jar) always in certain interval from server.
2nd app is immidiately running after downloading.

If example.jar changes on server it won't change running example.jar(after downloading)...it run always old example.jar(probably some cache). (But example.jar is downloaded right.)

(1st app don't exit - always running. But if I exit 1st app and run it again it will run right example.jar.)

[ July 29, 2008: Message edited by: manu chaox ]
[ July 29, 2008: Message edited by: manu chaox ]
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic