0
我一直試圖在運行在Linux上的Java 9中創建模塊化JAR。我每次運行命令:jar --create --file=mlib/[email protected] --module-version 1.0 -C mods/math.util .
我得到下面的異常在Linux上使用Java創建模塊化jar時的java.nio.file.NoSuchFileException 9
java.nio.file.NoSuchFileException: /tmp/[email protected] -> mlib/[email protected]
at sun.nio.fs.UnixException.translateToIOException([email protected]/UnixException.java:92)
at sun.nio.fs.UnixException.rethrowAsIOException([email protected]/UnixException.java:111)
at sun.nio.fs.UnixCopyFile.move([email protected]/UnixCopyFile.java:462)
at sun.nio.fs.UnixFileSystemProvider.move([email protected]/UnixFileSystemProvider.java:263)
at java.nio.file.Files.move([email protected]/Files.java:1398)
at sun.tools.jar.Main.validateAndClose([email protected]/Main.java:526)
at sun.tools.jar.Main.run([email protected]/Main.java:397)
at sun.tools.jar.Main.main([email protected]/Main.java:1769)
但同樣的命令工作正常Java的9在Windows上運行。我能夠成功創建JAR。
我一直在Linux上以root用戶身份嘗試。
有人可以幫我解決這個問題嗎?
也許你應該提交一個錯誤? – glee8e