analysis cannot run in Windows
Voimulax opened this issue · comments
What are you trying to do? Run analysis.bat in Windows
Expected behaviour: Successfully output the report
Observed behaviour: Throws an IOException: Clean up temporary directory: emt4j-unzip9818339042477963997 failed!
Any other comments:
1.Analysis
1.Analysis *******.jar
Exception in thread "main" java.lang.Error: Clean up temporary directory: emt4j-unzip9818339042477963997 failed!
at org.eclipse.emt4j.analysis.analyzer.JarAnalyzer.deleteFiles(JarAnalyzer.java:128)
at org.eclipse.emt4j.analysis.analyzer.JarAnalyzer.analyze(JarAnalyzer.java:80)
at org.eclipse.emt4j.analysis.analyzer.DependencyAnalyzer.iterateDo(DependencyAnalyzer.java:49)
at org.eclipse.emt4j.analysis.source.SingleJarSource.parse(SingleJarSource.java:38)
at org.eclipse.emt4j.analysis.AnalysisExecutor.execute(AnalysisExecutor.java:96)
at org.eclipse.emt4j.analysis.AnalysisMain.doAnalysis(AnalysisMain.java:101)
at org.eclipse.emt4j.analysis.AnalysisMain.main(AnalysisMain.java:47)
Caused by: java.nio.file.FileSystemException: C:\Users\Voimulax\AppData\Local\Temp\emt4j-unzip9818339042477963997\BOOT-INF\lib\lucene-analyzers-common-8.11.1.jar: 另一个程序正在使用此文件,进程无法访问。
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275)
at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:105)
at java.base/java.nio.file.Files.delete(Files.java:1152)
at org.eclipse.emt4j.analysis.analyzer.JarAnalyzer$1.visitFile(JarAnalyzer.java:117)
at org.eclipse.emt4j.analysis.analyzer.JarAnalyzer$1.visitFile(JarAnalyzer.java:114)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2812)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2883)
at org.eclipse.emt4j.analysis.analyzer.JarAnalyzer.deleteFiles(JarAnalyzer.java:114)
... 6 more