can't build jigsaw with new javac

Mandy Chung Mandy.Chung at Sun.COM
Tue Mar 9 13:38:37 PST 2010


On 03/09/10 12:16, Jonathan Gibbons wrote:
> Mandy,
> 
> What are you trying to do here?  You can't have -Xbootclasspath and 
> -modulepath.

That was a hack for javac to find classes that are not in the default
bootclasspath (e.g. lib/sa-jdi.jar).

For example, $outputdir/tmp/modules/src/jsadebugd/module-info.java
has a main class of sun.jvm.hotspot.jdi.SADebugServer that is not
in $outputdir/classes

Is there a better way to do this?

Mandy

> 
>> /mnt/w/jjg/work/jigsaw/jigsaw/build/linux-amd64/bin/javac  -source 7 
>> -target 7 -encoding ascii 
>> "-Xbootclasspath:/mnt/w/jjg/work/jigsaw/jigsaw/build/linux-amd64/classes"  
>> -d /mnt/w/jjg/work/jigsaw/jigsaw/build/linux-amd64/modules \
>>             
>> -Xbootclasspath:/mnt/w/jjg/work/jigsaw/jigsaw/build/linux-amd64/tmp/modules/classes\
>>         -modulepath 
>> /mnt/w/jjg/work/jigsaw/jigsaw/build/linux-amd64/modules \
>>             -sourcepath 
>> /mnt/w/jjg/work/jigsaw/jigsaw/build/linux-amd64/tmp/modules/src \
>>             
>> /mnt/w/jjg/work/jigsaw/jigsaw/build/linux-amd64/tmp/modules/src/*/module-info.java
>> javac: cannot specify both -bootclasspath and -modulepath
>> Usage: javac <options> <source files>
>> use -help for a list of possible options
> 
> See this response from Mark back in December, available here: 
> http://mail.openjdk.java.net/pipermail/jigsaw-dev/2009-December/000421.html
> 
>> >/ -- do we allow or forbid any use of bootclasspath with any modular code?
>> /
>> Forbid.
>>   
> 
> 
> -- Jon



More information about the jigsaw-dev mailing list