How can you run jtreg with jdk-base-image?

Alan Bateman Alan.Bateman at oracle.com
Wed Aug 31 13:29:55 PDT 2011


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? 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. 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. 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).

-Alan.



More information about the jigsaw-dev mailing list