can't fully unload a URLClassLoader




I have a JAR file. I use URLClassLoader to load classes from it. I use com.sun.appserv.ClassLoaderUtil.releaseLoader to release these loaded classes when I've finished with them. But the Java VM keeps the JAR file open (so that I can't delete it, as I'd like to). For small, simple JAR files, the JAR file does close OK.

Is there any way to find out what classes or resources in the JAR file are still in use by the Java VM? I'm developing with Eclipse.

Thanks,

Simon Morris
.



Relevant Pages

  • Re: How to update a jar file for one source file change?
    ... I'm new to java, so, I may get terminilogy wrong, bear with me. ... we've got a BIG jar file that includes thousands of classes. ... updated java source code was not being used. ...
    (comp.lang.java.programmer)
  • Re: Jar executable files open in Winzip or save as zip not jar
    ... The file Associations in Windows are fine. ... Windows, it runs with the java runtime application, and the application runs ... Go to Windows Explorer and navigate to any .jar file (perhaps in ... See it that will reset the file association for the jar files. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Running java programs from class files
    ... java -classpath /xyz/abc MyPackage.MyClass ... I think the most confusing part is the root business. ... I can get it to work if I put the jar file in the Class-Path: line in the manifest and put the jar file in the same directory as the program jar file but not from the command line. ...
    (comp.lang.java.programmer)
  • Re: Jar executable files open in Winzip or save as zip not jar
    ... The file Associations in Windows are fine. ... Windows, it runs with the java runtime application, and the application runs ... See it that will reset the file association for the jar files. ... it as a jar file. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: V5R3 System Printed Java Message
    ... I'm not a Java expert either, but it looks like Java can't find the ... So either your CLASSPATH variable is not ... the .jar file with Properties.class in it is missing. ... system properties: 'null' ...
    (comp.sys.ibm.as400.misc)