From nm3mon at gmail.com Mon Jun 3 10:47:09 2013 From: nm3mon at gmail.com (Nabeel Memon) Date: Mon, 3 Jun 2013 13:47:09 -0400 Subject: Prohibited package name: java.util.stream Message-ID: Simply running 'make jdk_util' under the test folder is failing and throwing the same exception: java.lang.SecurityException: Prohibited package name: java.util.stream... for all test sources under under: java/util/stream/test/* and java/util/stream/boottest/* Can anyone please verify if i've missed something or this is a known issue? Nabeel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20130603/0eb33255/attachment.html From jonathan.gibbons at oracle.com Mon Jun 3 13:13:38 2013 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Mon, 03 Jun 2013 13:13:38 -0700 Subject: Prohibited package name: java.util.stream In-Reply-To: References: Message-ID: <51ACF8F2.6090503@oracle.com> Nabeel, Make sure you are using the latest version of jtreg. For details on downloading and building from source, see the instructions here http://openjdk.java.net/jtreg/ -- Jon On 06/03/2013 10:47 AM, Nabeel Memon wrote: > Simply running 'make jdk_util' under the test folder is failing and > throwing the same exception: > > java.lang.SecurityException: Prohibited package name: java.util.stream... > > for all test sources under under: > > java/util/stream/test/* and java/util/stream/boottest/* > > > Can anyone please verify if i've missed something or this is a known > issue? > > > > Nabeel > From mike.duigou at oracle.com Mon Jun 3 13:30:00 2013 From: mike.duigou at oracle.com (Mike Duigou) Date: Mon, 3 Jun 2013 13:30:00 -0700 Subject: Prohibited package name: java.util.stream In-Reply-To: References: Message-ID: <0F4A1DBE-BE6A-435C-822C-1A14E1453E4D@oracle.com> It sounds like you are running with an old version of jtreg. You will have to update your jtreg installation. There are checkout and build instructions for jtreg here: http://openjdk.java.net/jtreg/ Mike On Jun 3 2013, at 10:47 , Nabeel Memon wrote: > Simply running 'make jdk_util' under the test folder is failing and throwing the same exception: > > java.lang.SecurityException: Prohibited package name: java.util.stream... > > for all test sources under under: > > java/util/stream/test/* and java/util/stream/boottest/* > > > Can anyone please verify if i've missed something or this is a known issue? > > > > Nabeel > From nm3mon at gmail.com Mon Jun 3 14:04:23 2013 From: nm3mon at gmail.com (Nabeel Memon) Date: Mon, 3 Jun 2013 17:04:23 -0400 Subject: Prohibited package name: java.util.stream In-Reply-To: <0F4A1DBE-BE6A-435C-822C-1A14E1453E4D@oracle.com> References: <0F4A1DBE-BE6A-435C-822C-1A14E1453E4D@oracle.com> Message-ID: Thanks. I noticed that and tried to follow the instructions and began building from source. It's not just as straight-forward. Too many cryptic errors. May be because i'm using OS X. I'll probably spin up a Fedora VM image and try on top of that. In the meantime, are there any latest jtreg binaries available for download? Nabeel On Mon, Jun 3, 2013 at 4:30 PM, Mike Duigou wrote: > It sounds like you are running with an old version of jtreg. You will have > to update your jtreg installation. There are checkout and build > instructions for jtreg here: http://openjdk.java.net/jtreg/ > > Mike > > On Jun 3 2013, at 10:47 , Nabeel Memon wrote: > > > Simply running 'make jdk_util' under the test folder is failing and > throwing the same exception: > > > > java.lang.SecurityException: Prohibited package name: java.util.stream... > > > > for all test sources under under: > > > > java/util/stream/test/* and java/util/stream/boottest/* > > > > > > Can anyone please verify if i've missed something or this is a known > issue? > > > > > > > > Nabeel > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20130603/7e69ba84/attachment.html From jonathan.gibbons at oracle.com Mon Jun 3 15:34:18 2013 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Mon, 03 Jun 2013 15:34:18 -0700 Subject: Prohibited package name: java.util.stream In-Reply-To: References: <0F4A1DBE-BE6A-435C-822C-1A14E1453E4D@oracle.com> Message-ID: <51AD19EA.9040700@oracle.com> Nabeel, I regret that we are unable to post binaries for jtreg at this time. However, jtreg is a pure-Java appllication, so if you can build it on any platform, you can use the resulting bits on any other platform. -- Jon On 06/03/2013 02:04 PM, Nabeel Memon wrote: > Thanks. I noticed that and tried to follow the instructions and began > building from source. It's not just as straight-forward. Too many > cryptic errors. May be because i'm using OS X. I'll probably spin up a > Fedora VM image and try on top of that. In the meantime, are there any > latest jtreg binaries available for download? > > > Nabeel > > > On Mon, Jun 3, 2013 at 4:30 PM, Mike Duigou > wrote: > > It sounds like you are running with an old version of jtreg. You > will have to update your jtreg installation. There are checkout > and build instructions for jtreg here: http://openjdk.java.net/jtreg/ > > Mike > > On Jun 3 2013, at 10:47 , Nabeel Memon wrote: > > > Simply running 'make jdk_util' under the test folder is failing > and throwing the same exception: > > > > java.lang.SecurityException: Prohibited package name: > java.util.stream... > > > > for all test sources under under: > > > > java/util/stream/test/* and java/util/stream/boottest/* > > > > > > Can anyone please verify if i've missed something or this is a > known issue? > > > > > > > > Nabeel > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20130603/cb0e0cd5/attachment.html From patrick at reini.net Tue Jun 11 13:40:14 2013 From: patrick at reini.net (Patrick Reinhart) Date: Tue, 11 Jun 2013 22:40:14 +0200 Subject: Jtreg setup under Windows 7/8 Message-ID: <51B78B2E.3020208@reini.net> 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 From mike.duigou at oracle.com Tue Jun 11 13:59:09 2013 From: mike.duigou at oracle.com (Mike Duigou) Date: Tue, 11 Jun 2013 13:59:09 -0700 Subject: Jtreg setup under Windows 7/8 In-Reply-To: <51B78B2E.3020208@reini.net> References: <51B78B2E.3020208@reini.net> Message-ID: 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 From patrick at reini.net Tue Jun 11 14:38:23 2013 From: patrick at reini.net (Patrick Reinhart) Date: Tue, 11 Jun 2013 23:38:23 +0200 Subject: Jtreg setup under Windows 7/8 In-Reply-To: References: <51B78B2E.3020208@reini.net> Message-ID: <51B798CF.7020004@reini.net> 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 From mike.duigou at oracle.com Tue Jun 11 14:58:09 2013 From: mike.duigou at oracle.com (Mike Duigou) Date: Tue, 11 Jun 2013 14:58:09 -0700 Subject: Jtreg setup under Windows 7/8 In-Reply-To: <51B798CF.7020004@reini.net> References: <51B78B2E.3020208@reini.net> <51B798CF.7020004@reini.net> Message-ID: On Jun 11 2013, at 14:38 , 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? Uncertain. try bash -x /cygdrive/c/OpenJDK/jtreg/win32/bin/jtreg and see what it's trying when attempting to set up JT_JAVA=java > 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 > From jonathan.gibbons at oracle.com Tue Jun 11 15:06:07 2013 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Tue, 11 Jun 2013 15:06:07 -0700 Subject: Jtreg setup under Windows 7/8 In-Reply-To: <51B798CF.7020004@reini.net> References: <51B78B2E.3020208@reini.net> <51B798CF.7020004@reini.net> Message-ID: <51B79F4F.5000100@oracle.com> 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 > From patrick at reini.net Tue Jun 11 15:16:01 2013 From: patrick at reini.net (Patrick Reinhart) Date: Wed, 12 Jun 2013 00:16:01 +0200 Subject: Jtreg setup under Windows 7/8 In-Reply-To: <51B79F4F.5000100@oracle.com> References: <51B78B2E.3020208@reini.net> <51B798CF.7020004@reini.net> <51B79F4F.5000100@oracle.com> Message-ID: <51B7A1A1.4090905@reini.net> 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 >> > From jonathan.gibbons at oracle.com Tue Jun 11 15:22:01 2013 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Tue, 11 Jun 2013 15:22:01 -0700 Subject: Jtreg setup under Windows 7/8 In-Reply-To: <51B7A1A1.4090905@reini.net> References: <51B78B2E.3020208@reini.net> <51B798CF.7020004@reini.net> <51B79F4F.5000100@oracle.com> <51B7A1A1.4090905@reini.net> Message-ID: <51B7A309.9000105@oracle.com> 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 >>> >> > From jonathan.gibbons at oracle.com Tue Jun 11 15:24:08 2013 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Tue, 11 Jun 2013 15:24:08 -0700 Subject: Jtreg setup under Windows 7/8 In-Reply-To: <51B7A309.9000105@oracle.com> References: <51B78B2E.3020208@reini.net> <51B798CF.7020004@reini.net> <51B79F4F.5000100@oracle.com> <51B7A1A1.4090905@reini.net> <51B7A309.9000105@oracle.com> Message-ID: <51B7A388.7030006@oracle.com> 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 >>>> >>> >> > From patrick at reini.net Tue Jun 11 15:28:03 2013 From: patrick at reini.net (Patrick Reinhart) Date: Wed, 12 Jun 2013 00:28:03 +0200 Subject: Jtreg setup under Windows 7/8 In-Reply-To: <51B7A388.7030006@oracle.com> References: <51B78B2E.3020208@reini.net> <51B798CF.7020004@reini.net> <51B79F4F.5000100@oracle.com> <51B7A1A1.4090905@reini.net> <51B7A309.9000105@oracle.com> <51B7A388.7030006@oracle.com> Message-ID: <51B7A473.9040600@reini.net> 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 >>>>> >>>> >>> >> > From jonathan.gibbons at oracle.com Tue Jun 11 15:39:01 2013 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Tue, 11 Jun 2013 15:39:01 -0700 (PDT) Subject: Jtreg setup under Windows 7/8 In-Reply-To: <51B7A473.9040600@reini.net> References: <51B78B2E.3020208@reini.net> <51B798CF.7020004@reini.net> <51B79F4F.5000100@oracle.com> <51B7A1A1.4090905@reini.net> <51B7A309.9000105@oracle.com> <51B7A388.7030006@oracle.com> <51B7A473.9040600@reini.net> Message-ID: <51B7A705.7020602@oracle.com> 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 >>>>>> >>>>> >>>> >>> >> > From patrick at reini.net Tue Jun 11 15:42:05 2013 From: patrick at reini.net (Patrick Reinhart) Date: Wed, 12 Jun 2013 00:42:05 +0200 Subject: Jtreg setup under Windows 7/8 In-Reply-To: <51B7A705.7020602@oracle.com> References: <51B78B2E.3020208@reini.net> <51B798CF.7020004@reini.net> <51B79F4F.5000100@oracle.com> <51B7A1A1.4090905@reini.net> <51B7A309.9000105@oracle.com> <51B7A388.7030006@oracle.com> <51B7A473.9040600@reini.net> <51B7A705.7020602@oracle.com> Message-ID: <9308980F-A66F-4392-A617-70C878505733@reini.net> Thanks for the tip. I will check that out... Cheers Patrick Am 12.06.2013 um 00:39 schrieb Jonathan Gibbons : > 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 > From jonathan.gibbons at oracle.com Tue Jun 11 15:54:00 2013 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Tue, 11 Jun 2013 15:54:00 -0700 Subject: Jtreg setup under Windows 7/8 In-Reply-To: <9308980F-A66F-4392-A617-70C878505733@reini.net> References: <51B78B2E.3020208@reini.net> <51B798CF.7020004@reini.net> <51B79F4F.5000100@oracle.com> <51B7A1A1.4090905@reini.net> <51B7A309.9000105@oracle.com> <51B7A388.7030006@oracle.com> <51B7A473.9040600@reini.net> <51B7A705.7020602@oracle.com> <9308980F-A66F-4392-A617-70C878505733@reini.net> Message-ID: <51B7AA88.30103@oracle.com> Internally, I've filed a bug to address this. One of these days, our JIRA Java Bug System will be open. It's interesting, given the right frame of reference, even glaciers can look fast. :-( -- Jon On 06/11/2013 03:42 PM, Patrick Reinhart wrote: > Thanks for the tip. I will check that out... > > Cheers > > Patrick > > Am 12.06.2013 um 00:39 schrieb Jonathan Gibbons : > >> 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 From Alan.Bateman at oracle.com Tue Jun 25 13:47:46 2013 From: Alan.Bateman at oracle.com (Alan Bateman) Date: Tue, 25 Jun 2013 21:47:46 +0100 Subject: jtreg -xml generates invalid XML Message-ID: <51CA01F2.3070103@oracle.com> I tried to use jtreg -xml:verify recently but I found that a number of jdk tests emit control characters in their output which results in illegal characters in the XML output. I worked around it with the attached patch (which just drops the control characters except for 0x9, 0xA and 0xD). I bring it out as it may be something to look into more as there are other restricted characters and maybe they should be mapped to something rather than dropped. -Alan diff --git a/src/share/classes/com/sun/javatest/regtest/XMLWriter.java b/src/share/classes/com/sun/javatest/regtest/XMLWriter.java --- a/src/share/classes/com/sun/javatest/regtest/XMLWriter.java +++ b/src/share/classes/com/sun/javatest/regtest/XMLWriter.java @@ -417,6 +417,7 @@ private static final Pattern XML_AMP = Pattern.compile("&"); private static final Pattern XML_QUOTE = Pattern.compile("\""); private static final Pattern XML_APOS = Pattern.compile("\'"); + private static final Pattern XML_ILLEGAL = Pattern.compile("[\\p{Cntrl}&&[^\\u0009\\u000A\\u000D]]"); // sanitize the string for xml presentation public void sanitize(String in) { @@ -429,6 +430,7 @@ in = XML_LT.matcher(in).replaceAll("<"); in = XML_QUOTE.matcher(in).replaceAll("""); in = XML_APOS.matcher(in).replaceAll("'"); + in = XML_ILLEGAL.matcher(in).replaceAll(""); ps.print(in); } }