Problems with JavacTool & -L

Mandy Chung mandy.chung at oracle.com
Tue Dec 27 18:37:17 PST 2011


On 12/27/2011 4:43 PM, Jesse Glick wrote:
> Is there some reason that (as of 1e829edfb340) 
> RecognizedOptions.javacOptions includes OptionName.L but 
> javacToolOptions does not? Passing -L among the 'options' to 
> JavaCompiler.getTask throws an exception:
>
> java.lang.IllegalArgumentException: invalid flag: -L
>     at 
> com.sun.tools.javac.api.JavacTool.processOptions(JavacTool.java:231)
>     at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:199)
>     at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:68)
>

Possibly just a bug.  Jon is on vacation and will wait for him to confirm.

> (I am trying to run Jigsaw langtools on top of JRE 7, so far without 
> success: I get "Unable to find package java.lang in classpath or 
> bootclasspath".)

Jigsaw JDK is built using jigsaw langtools on top of JDK 7 as the boot 
JDK.  So I expect it should work to run on top of JRE 7.    How do you 
run it?

Mandy



More information about the jigsaw-dev mailing list