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

Jonathan Gibbons jonathan.gibbons at oracle.com
Wed Nov 19 18:56:52 UTC 2014

On 11/19/2014 04:50 AM, Filipp Zhinkin wrote:
> 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.

Just checking -- I presume these jar files are not on the standard 
bootclasspath, right?

If not, then right now, there is no easy way to do this.

-- Jon

More information about the jtreg-use mailing list