Jtreg setup under Windows 7/8
Jonathan Gibbons
jonathan.gibbons at oracle.com
Tue Jun 11 15:39:01 PDT 2013
Just use
export JAVA_HOME=C:/Java/jdk1.7.0_21
Cygwin may whinge at you, but it should accept it.
-- Jon
On 06/11/2013 03:28 PM, Patrick Reinhart wrote:
> Hi Jon,
>
> What would be the way to specify the path as workaround then?
> Unfortunately I'm not that familiar with the cygwin environment,
> because I normally use Linunx and only have running Windows in a
> VirtualBox to reproduce and fix a Windows bug....
>
> Cheers
>
> Patrick
>
> On 06/12/2013 12:24 AM, Jonathan Gibbons wrote:
>> Note to self: the jtreg script should (conditionally) use the
>> cygpath command to convert the path.
>>
>> -- Jon
>>
>> On 06/11/2013 03:22 PM, Jonathan Gibbons wrote:
>>> uugh yes, understood.
>>>
>>> Yes, Java programs typically don't understand cygwin paths, so
>>> scripts generally need to convert them to dos-type paths before
>>> passing them to Java programs.
>>>
>>> -- Jon
>>>
>>> On 06/11/2013 03:16 PM, Patrick Reinhart wrote:
>>>> 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