Jtreg setup under Windows 7/8
Patrick Reinhart
patrick at reini.net
Tue Jun 11 15:16:01 PDT 2013
Hi Jon,
After some research with Martijn Verburg we found out the if the class
path to the jtreg.jar is specified in a absolute way, it won't work.
Using a relative path does the thing...
Cheers
openjdk at openjdk-win-7 /cygdrive/c/OpenJDK/jtreg/lib
$ /cygdrive/c/Java/jdk1.7.0_21/bin/java -classpath
/cygdrive/c/OpenJDK/jtreg/lib/jtreg.jar
com.sun.javatest.regtest.GetSystemProperty java.version
Error: Could not find or load main class
com.sun.javatest.regtest.GetSystemProperty
openjdk at openjdk-win-7 /cygdrive/c/OpenJDK/jtreg
$ /cygdrive/c/Java/jdk1.7.0_21/bin/java -classpath lib/jtreg.jar
com.sun.javatest.regtest.GetSystemProperty java.version
java.version=1.7.0_21
openjdk at openjdk-win-7 /cygdrive/c/OpenJDK/jtreg/lib
$ /cygdrive/c/Java/jdk1.7.0_21/bin/java -classpath jtreg.jar
com.sun.javatest.regtest.GetSystemProperty
java.version java.version=1.7.0_21
On 06/12/2013 12:06 AM, Jonathan Gibbons wrote:
> The jtreg script is having trouble identifying which version of Java
> to use. It should be detecting your setting of JAVA_HOME, but is
> failing for some readon. You could try setting JT_JAVA to either
>
> export JT_JAVA=/cygdrive/c/Java/jdk1.7.0_21
>
> or
>
> export JT_JAVA=/cygdrive/c/Java/jdk1.7.0_21/bin/java
>
>
> -- Jon
>
>
>
> On 06/11/2013 02:38 PM, Patrick Reinhart wrote:
>> Hi Mike,
>>
>> I just began to set it up after I have built jdk8_tl that extracted
>> the binary and set up the following cygwin exports:
>>
>> export JAVA_HOME=/cygdrive/c/Java/jdk1.7.0_21
>> export JT_HOME=/cygdrive/c/OpenJDK/jtreg
>> export
>> PRODUCT_HOME=/cygdrive/c/OpenJDK/jdk8_tl/build/windows-x86_64-normal-server-release/images/j2sdk-image
>> export PATH=${JAVA_HOME}/bin:${JT_HOME}/win32/bin:${PATH}
>>
>> After that I did some basic tests:
>>
>> $ java -version
>> java version "1.7.0_21"
>> Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
>> Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
>>
>> $ jtreg
>> Cannot determine version of java to run jtreg
>>
>> What could cause this problem?
>>
>> Cheers
>>
>> Patrick
>>
>> On 06/11/2013 10:59 PM, Mike Duigou wrote:
>>> What's failing? which OpenJDK repo are you trying to run it against?
>>> Which tests are you trying to run? etc.
>>>
>>> Mike
>>>
>>> On Jun 11 2013, at 13:40 , Patrick Reinhart wrote:
>>>
>>>> Hi everybody,
>>>>
>>>> I just set up a new build environment under Windows 8 and try to
>>>> also set up Jtreg after a successful build. But until now with not
>>>> lot much luck.
>>>>
>>>> I use the binary version jtreg-4.1-bin-b05_29_nov_2012.zip from
>>>> http://download.java.net/openjdk/jtreg.
>>>>
>>>>
>>>> Does anyone have a hint what kind of variables have to be set under
>>>> Cygwin?
>>>>
>>>> Cheers Patrick
>>
>
More information about the jtreg-use
mailing list