Java keeping jar in use by jarclassloader/urlclassloader

夙愿已清 提交于 2020-01-04 14:09:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!