How to determine if a jar is in use
Hey all,
I have a program that i have written and installed on my machine. There are a couple jars that are accessed through my program.When i go to uninstall it (using an unimportant program), it says that there are files currently in use. I know that it is implying one of the jars that i have provided. Is there a way to determine if the system is currently using one of those jars?
Thanks,
Jason
[425 byte] By [
jmgreen7a] at [2007-10-3 3:34:24]

> I know that
> it is implying one of the jars that i have provided.
Then you must have some amazing powers of clairvoyance. What about the error you received makes you know (as opposed to suspect or hypothesize) that it is the JAR files that are in use? Especially since you're asking about how to verify this. I really doubt that it's a problem with Java that you are having.
Brian
> it says that there are files currently in use. I know that
> it is implying one of the jars that i have provided.
> Is there a way to determine if the system is
> currently using one of those jars?
If there wasn't a way, then that program would not be able to tell you that the file was in use, right?
I know that it is some of the jars in that directory, b/c the program copies jars down from a location into that directory. When the machine is rebooted, the machine loads the location of all the jars from a registry that is created into the classpath. If by chance, there is a jar that gets copied to the classpath that resides in the local directory instead of the main repository of jars, then all programs will use that version of hte jar. I am trying to figure out if that is happening. Please don't say: "check the classpath". So bottom line is: I know that it is one or more jars in a bin directory that i want to delete that are being used. I need to determine whihc ones are being used, and by whom.
its not necessarily a java thing, with the exception that i am looking for jars in particular that are being used