问题
I am loading a jar file with a JarClassLoader
. After the jar file is loaded, I want to delete the file. Everything works fine except for deleting the file because the file is kept in use by the Java jvm. How do I unlock the jar? I am already closing all my inputstreams
and closing the urlclassloader
.
Thank you, Ridz
来源:https://stackoverflow.com/questions/18834432/java-keeping-jar-in-use-by-jarclassloader-urlclassloader