-L switch
Jonathan Gibbons
jonathan.gibbons at oracle.com
Sat Apr 3 14:45:36 PDT 2010
Various JDK tools are now beginning to accept a "-L library" option.
(java, jmod, javac etc)
It would help if the java command's "-L library" had a variant that did
not involve whitespace. The reasons are the same as for the java
command's "-bootclasspath path" and "-Xbootclasspath:path" options. If
you have a tool that is invoked by the launcher, it is helpful to be
able to tunnel options to the JVM using the -J convention. e.g.
javac -J-Xbootclasspath:my-path.
With the current spec of the -L option, we will have to cross our
fingers and hope that it works to prefix both the option and the
argument with -J, as in
javac -J-L -Jmy-library
I have two suggestions on how we can achieve this:
1. Allow "-L:my-library" as well as "-L library"
2. By analogy with -bootclasspath, provide "-XL:path"
-- Jon
More information about the jigsaw-dev
mailing list