make -C make test fails on WXP

Francis ANDRE francis.andre.kampbell at orange.fr
Fri Nov 22 06:06:13 UTC 2013


Hi Jon

On WXP, running make -C make test fails because the -cp parameter value is using 
a cygwin based path instead of a windows path for the jtreg.jar as

-cp "../../../testClasses;/cygdrive/Z/JDK/jtreg/build/images/jtreg/lib/jtreg.jar"


Here the log of the test

$ make -C make test
make: Entering directory `/cygdrive/Z/JDK/jtreg/make'
/bin/rm -rf ../build/Basic.othervm/work ../build/Basic.othervm/report
/bin/mkdir -p ../build/Basic.othervm/work/scratch ../build/Basic.othervm/report
CLASSPATH="../build/classes;../src/share/classes;Z:/JDK/jtharness/lib/javatest.jar" 
\
         C:/Progra~1/Java/jdk1.6.0_35/bin/javac -encoding ISO8859-1 -d 
../build/testClasses ../src/sh
are/test/javatest/regtest/Basic.java
DISPLAY=`sh display.sh` export DISPLAY ; \
trap "sh `pwd`/display.sh -kill" 0 ; \
cd ../build/Basic.othervm/work/scratch ; \
     C:/Progra~1/Java/jdk1.6.0_35/bin/java \
         -cp 
"../../../testClasses;/cygdrive/Z/JDK/jtreg/build/images/jtreg/lib/jtreg.jar" \
         -Ddebug.com.sun.javatest.TestResultTable=true \
         -Ddebug.com.sun.javatest.TRT.TreeIterator=true \
         -Ddebug.com.sun.javatest.TestRunner=true \
         -Djavatest.regtest.allowTrailingBuild=true \
         -Djavatest.regtest.showCmd=true \
         -Djavatest.regtest.debugChild=true \
         -Djavatest.regtest.debugOptions=true \
         Basic \
             Z:/JDK/jtreg/src/share/test/javatest/regtest/data/basic \
             ../../report \
             ../../work \
             C:/Progra~1/Java/jdk1.6.0_35 \
             "DISPLAY=${DISPLAY:-`uname -n`:0.0}" \
             -othervm \
         > ../../log 2>&1 \
     || (cat ../../log ; exit 1)
java.lang.NoClassDefFoundError: com/sun/javatest/Harness$Fault
Caused by: java.lang.ClassNotFoundException: com.sun.javatest.Harness$Fault
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: Basic.  Program will exit.
Exception in thread "main" make: *** [../build/Basic.othervm.ok] Error 1
make: Leaving directory `/cygdrive/Z/JDK/jtreg/make'


More information about the jtreg-dev mailing list