• 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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: 43016
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
 
His brain is the size of a cherry pit! About the size of this 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
    Bookmark Topic Watch Topic
  • New Topic