can't build jigsaw with new javac
Jonathan Gibbons
Jonathan.Gibbons at Sun.COM
Tue Mar 9 14:16:54 PST 2010
Uuugh. Well, you've got a mixed up world with the classes in a
classes/ hierarchy and the module-info files in a modules hierarchy
under tmp/modules/src. On top of which you've got an empty directory on
modulepath and no -d. No wonder javac is confused ;-)
It would seem that we either have to resolve the conflict between the
classes/ and module-info hierarchies, or we have to revisit the decision
to forbid use of bootclasspath with module compilation for javac.
-- Jon
Mandy Chung wrote:
> 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