This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Classes working even after removing jar

 
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I have a typical scenario.
I am using a web application. Some class files are getting accessed from a .jar file. Now, I expect the system to give me errors/exceptions when I remove the .jar file.

So, I have removed the .jar file.

Instead of getting errors, the application is running smoothly even after removing the .jar file. I guess a copy of that .jar file would have been stuck somewhere.

Is there anyway to find out where that .jar file is sticking in the system or any other way to find out? Like any JRE caching JAR file or any JAR caching concepts...i don't know...just throwing ideas.

This is on windows only.

Thanks,
Guru
 
Bartender
Posts: 3648
16
Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do check the <jre_root>/lib folder if your jar files are there. This is the default place.
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to be clear, have you restarted the application after removing the jar files? If you remove them during the runtime of an application they may have been read and cached by the JVM already.
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Restart the Application
 
Evildoers! Eat my justice! And this tiny ad's justice too!
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!