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

Filipp Zhinkin filipp.zhinkin at oracle.com
Fri Nov 21 09:13:02 UTC 2014


On 11/19/2014 10:56 PM, Jonathan Gibbons wrote:
>
> 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?
Right.
>
> If not, then right now, there is no easy way to do this.
That's sad.

Thanks,
Filipp.
>
> -- Jon



More information about the jtreg-use mailing list