Test's classpath and jar's from $JDK_HOME/lib/

Filipp Zhinkin filipp.zhinkin at oracle.com
Wed Nov 19 12:50:36 UTC 2014


Hi,

it there a way to put jars from $JDK_HOME/lib/ (sa-jdi.jar for example)
into test's classpath like it is possible to do with jars from a location
relative to TEST.ROOT or test.src using @library tag?

Of course it is possible to write custom driver class that will copy
required jars to CWD or will wrap javac and java commands and
will itself substitute required jars to their classpaths.

But maybe a simpler approach already exist?

// BTW, $JDK_HOME/lib/tools.jar is already in tests' classpath. ;)

Thanks in advance,
Filipp.


More information about the jtreg-use mailing list