Problems with JavacTool & -L

Jesse Glick jesse.glick at oracle.com
Tue Dec 27 16:43:04 PST 2011


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)

(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".)



More information about the jigsaw-dev mailing list