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

Sean Mullan sean.mullan at oracle.com
Wed Aug 31 14:24:43 PDT 2011


On 8/31/11 5:09 PM, Alan Bateman wrote:
> Sean Mullan wrote:
>> :
>> jtreg. Here's the exception stack trace:
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> java/awt/IllegalComponentStateException
>> 	at javax.help.HelpSet.findHelpSet(HelpSet.java:169)
>> 	at javax.help.HelpSet.findHelpSet(HelpSet.java:200)
>> 	at javax.help.HelpSet.findHelpSet(HelpSet.java:213)
>> 	at com.sun.interview.Interview.setHelpSet(Interview.java:380)
>> 	at com.sun.javatest.interview.TestsInterview.<init>(TestsInterview.java:72)
>> 	at
>> com.sun.javatest.interview.BasicInterviewParameters.createTestsInterview(BasicInterviewParameters.java:96)
>> 	at
>> com.sun.javatest.interview.BasicInterviewParameters.<init>(BasicInterviewParameters.java:64)
>> 	at
>> com.sun.javatest.interview.BasicInterviewParameters.<init>(BasicInterviewParameters.java:83)
>> 	at
>> com.sun.javatest.regtest.RegressionParameters.<init>(RegressionParameters.java:56)
>> 	at
>> com.sun.javatest.regtest.RegressionTestSuite.createInterview(RegressionTestSuite.java:106)
>> 	at com.sun.javatest.regtest.Main.createParameters(Main.java:1434)
>> 	at com.sun.javatest.regtest.Main.run(Main.java:979)
>> 	at com.sun.javatest.regtest.Main.run(Main.java:877)
>> 	at com.sun.javatest.regtest.Main.main(Main.java:821)
>>   
> Ah, this is running jtreg with the base image whereas you want to run 
> jtreg with a full JDK image. You can do that by setting JT_JAVA to a JDK 
> (legacy or a modular JDK that has all modules installed).  Then specify 
> the base image that you want to test by specifying the -jdk option.

Yep that works.

--Sean



More information about the jigsaw-dev mailing list