How can you run jtreg with jdk-base-image?
sean.mullan at oracle.com
Wed Aug 31 13:36:36 PDT 2011
On 8/31/11 4:29 PM, Alan Bateman wrote:
> Sean Mullan wrote:
>> I'm trying to run tests with only a jdk-base-image but I am getting errors
>> because jtreg can't find classes that aren't in the installed modules. Is it
>> possible to run jtreg with this type of setup?
> Is it classes that jtreg needs or classes that the tests need?
jtreg. Here's the exception stack trace:
Exception in thread "main" java.lang.NoClassDefFoundError:
> I recall
> there were issues with jtreg (may have been JavaTest, which jtreg uses)
> needing JavaHelp and AWT and I remember having to do a bit of hacking to
> get it to work.
yep - do you remember what you did?
> The jdk-base-image has the compiler and tools so we
> should be able to get this to work. The other useful thing to know is
> the -compilejdk option so we should be able to run tests with a
> jre-base-image too.
Is that a jtreg option?
> Anyway, once you get past that then the real fun
> begins because our tests aren't organized by module and will have
> dependency on modules that aren't in the base image (and since jtreg
> will be running the tests in legacy mode then it means ClassNotFoundErrors).
I'm mostly interested in running the security tests, validating signed modules
and so forth.
More information about the jigsaw-dev