RFR (S) 8007142: Add utility classes for writing better multiprocess tests in jtreg

Yekaterina Kantserova yekaterina.kantserova at oracle.com
Mon Feb 4 11:03:50 UTC 2013

On 02/04/2013 11:55 AM, Alan Bateman wrote:
> On 04/02/2013 10:33, Yekaterina Kantserova wrote:
>> No, it was a bad example. Let's take another one:
>> /java -jar jtreg.jar -jdk MONKEY -compilejdk LION test.java/
>> In this case JDKToolFinder.getJDKTool("jcmd") will return 
>> LION/bin/jcmd, but I need to test MONKEY/bin/jcmd.
> The -compilejdk option should only be used when testing a JRE -- ie: 
> no tools in the runtime under test.
> So this your example shouldn't include the -compilejdk option as it is 
> testing a JDK.
> -Alan.

But JDKToolFinder.getJDKTool is used even for finding java, e.g. I need 
to fork a java process - JDKToolFinder.getJDKTool("java") for some JRE 

// Katja

More information about the core-libs-dev mailing list