An exception has occurred in jlink
Wolfgang Weigend
wolfgang.weigend at oracle.com
Sat Oct 24 16:32:53 UTC 2015
Dear folks,
I tried the jdk 9 EA jigsaw b83 with the quick start example as below.
C:\>jlink --modulepath C:\projects\jdk1.9.0\jmods:mlib --addmods C:\src\com.greetings --output greetingsapp
An exception has occurred in jlink. Please file a bug at the Java Bug Database (http://bugreport.java.com/bugreport/) after checking the database for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.nio.file.InvalidPathException: Illegal char <:> at index 26: C:\projects\jdk1.9.0\jmods:mlib
at sun.nio.fs.WindowsPathParser.normalize(HYPERLINK "mailto:java.base at 9.0/WindowsPathParser.java:182"java.base at 9.0/WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(HYPERLINK "mailto:java.base at 9.0/WindowsPathParser.java:153"java.base at 9.0/WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(HYPERLINK "mailto:java.base at 9.0/WindowsPathParser.java:77"java.base at 9.0/WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(HYPERLINK "mailto:java.base at 9.0/WindowsPath.java:94"java.base at 9.0/WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(HYPERLINK "mailto:java.base at 9.0/WindowsFileSystem.java:255"java.base at 9.0/WindowsFileSystem.java:255)
at java.nio.file.Paths.get(HYPERLINK "mailto:java.base at 9.0/Paths.java:84"java.base at 9.0/Paths.java:84)
at jdk.tools.jlink.JlinkTask.lambda$static$1(HYPERLINK "mailto:jdk.jlink at 9.0/JlinkTask.java:106"jdk.jlink at 9.0/JlinkTask.java:106)
at jdk.tools.jlink.TaskHelper$Option.process(HYPERLINK "mailto:jdk.jlink at 9.0/TaskHelper.java:128"jdk.jlink at 9.0/TaskHelper.java:128)
at jdk.tools.jlink.TaskHelper$OptionsHelper.handleOptions(HYPERLINK "mailto:jdk.jlink at 9.0/TaskHelper.java:520"jdk.jlink at 9.0/TaskHelper.java:520)
at jdk.tools.jlink.JlinkTask.run(HYPERLINK "mailto:jdk.jlink at 9.0/JlinkTask.java:186"jdk.jlink at 9.0/JlinkTask.java:186)
at jdk.tools.jlink.Main.main(HYPERLINK "mailto:jdk.jlink at 9.0/Main.java:33"jdk.jlink at 9.0/Main.java:33)
And without ":mlib" the module wasn't found as below.
C:\mlib>jlink --modulepath C:\projects\jdk1.9.0\jmods --addmods com.greetings --output greetingsapp
Error: Module com.greetings not found
Any hints are welcome
Thanks and kind regards
Wolfgang
More information about the jigsaw-dev
mailing list