jmod problem
Jonathan Gibbons
Jonathan.Gibbons at Sun.COM
Thu Mar 11 19:27:54 PST 2010
Mandy Chung wrote:
> Jonathan Gibbons wrote:
>> I have a reasonably up to date copy of the jigsaw forest, and I have
>> built it successfully on Ubuntu.
>>
>> If I try and run jmod to create a simple library, it tells me it
>> cannot find the parent library, and indeed, the path it specifies
>> does not exist.
>>
>>> % ./build/linux-amd64/j2sdk-image/bin/jmod create -L /tmp/xxx
>>> /tmp/xxx: Cannot open parent library
>>> /mnt/w/jjg/work/jigsaw/jigsaw/build/linux-amd64/j2sdk-image/jre/lib/modules
>>>
>>
>> Am I out of date with how things are supposed to work? Is jmod in
>> j2sdk-image supposed to work?
>>
>
> I leave the legacy jdk image as it is today and didn't create a system
> module library. If it's for jtreg tests, you can do jmod create -N -L
> /tmp/xxx.
>
> jdk-module-image is the modular jdk that has the system module library
> created.
>
> Mandy
>> This is breaking one of the langtools regression tests.
>>
>> -- Jon
>
Mandy,
Thanks for the help.
I guess I would suggest that either jmod should not be included in the
legacy image, or it should have a more friendly error if there is no
system module image available. There should also be a way for code to
query the system to determine if this is a legacy image or a module
image, so that tests (for example) can adapt their behavior accordingly.
-- Jon
More information about the jigsaw-dev
mailing list