Help with using jtreg to verify build needed

Jonathan Gibbons jonathan.gibbons at oracle.com
Tue Jul 9 07:58:41 UTC 2013


Matthew,

I don't know how up to date the Ubuntu version of jtreg is.
You may need a newer version of jtreg anyway.

One workaround for you would be to create a directory
containing the right files in the right locations.  At a minimum
you need
     win32/bin/jtreg
     lib/jtreg.jar
     lib/jtharness.jar

-- Jon




On 07/09/2013 06:59 AM, Matthew Butner wrote:
> Not sure if this is the right place to ask or not, and if it isn't, please
> direct me to the correct forum but I have been trying all day to use jtreg
> to test my jdk 1.8 build with no success.
>
> Here is my problem:
> I am running ubuntu and have used the apt center to install jtreg. This
> means that jtreg and jtdiff are installed under /usr/bin. When I run the
> configure script it does not automatically detect jtreg and when I try
> running it with the --with-jtreg=/usr/bin/jtreg or /usr/bin it fails
> because it is trying to find the executable inside subdirectories that do
> not exist because I did not install jtreg from source.
>
> I tried to work around this by modifying line 16463
> JTREGEXE="$JT_HOME/win32/bin/jtreg"
> to
> JTREGEXE="$JT_HOME/jtreg"
>
> which made it detect jtreg but the command in the readme
> *cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all
>
> *still fails because it is still trying to look in
> /usr/bin/win32/bin/jtreg
>
> and win32/bin/jtreg does not exist.
>
> Any help would be greatly welcome but if possible I don't want to have to
> install jtreg from source as that is a whole other can of worms.
>
> Thank you,
> Matthew




More information about the build-dev mailing list