Delete testng.zip after extraction

Ahmed Ashour asashour at yahoo.com
Tue Jul 14 11:02:56 UTC 2015


Hi Michael,

>> This does seem to indicate that testng.jar is not there; could you please confirm?

Positive, the file is there, as shown in the below. 

Please note it finds the JAR, since it can load the TestNG.class, but it can't find 
JUnitReportReporter.class possibly because of Bootstrapping. 

I am using Ant 1.9.6 and jdk 8u45, with removing all %PATH%.

I tried to use TestNG 6.9.4, but it couldn't find jcommander, even if appended to '
run.test.classpath'


Far below is the output of `ant -diagnostics' in case it helps.

If it can not be produced, possibly this is affecting only my machine, I would try into another one.

Ahmed

test-pessimistic: 
[echo] Running test suite in PESSIMISTIC mode... 

-test-nosecurity: 
[testng] Exception in thread "main" java.lang.NoClassDefFoundError: org/testng/reporters/JUnitReportReporter 
[testng] at java.lang.ClassLoader.findBootstrapClass(Native Method) 
[testng] at java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1012) 
[testng] at java.lang.ClassLoader.loadClass(ClassLoader.java:413) 
[testng] at java.lang.ClassLoader.loadClass(ClassLoader.java:411) 
[testng] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) 
[testng] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 
[testng] at org.testng.internal.ClassHelper.forName(ClassHelper.java:96) 
[testng] at org.testng.internal.ClassHelper.fileToClass(ClassHelper.java:519) 
[testng] at org.testng.TestNG.configure(TestNG.java:1426) 
[testng] at org.testng.TestNG.privateMain(TestNG.java:1328) 
[testng] at org.testng.TestNG.main(TestNG.java:1307) 

BUILD FAILED 
C:\use\eclipse\workspace\nashorn\make\build.xml:494: The following error occurred while executing this line: 
C:\use\eclipse\workspace\nashorn\make\build.xml:436: The tests failed. 

Total time: 2 seconds 

--------------------------------------------------------------C:\use\eclipse\workspace\nashorn\make>dir ..\test\lib 
Volume in drive C is SYSTEM 
Volume Serial Number is C24E-13A7 

Directory of C:\use\eclipse\workspace\nashorn\test\lib 

07/14/2015 12:30 PM <DIR> . 
07/14/2015 12:30 PM <DIR> .. 
07/08/2015 03:31 PM 1,660 benchmark.js 
07/14/2015 12:30 PM 11,550,802 testng-6.8.zip 
10/03/2012 07:54 AM 1,377,268 testng.jar 
3 File(s) 12,929,730 bytes 

2 Dir(s) 60,540,223,488 bytes free 

--------------------------------------------------------------
C:\use\eclipse\workspace\nashorn\make>\use\ant\bin\ant -diagnostics 
------- Ant diagnostics report ------- 
Apache Ant(TM) version 1.9.6 compiled on June 29 2015 

------------------------------------------- 
Implementation Version 
------------------------------------------- 
core tasks     : 1.9.6 in file:/C:/use/ant/lib/ant.jar 

------------------------------------------- 
ANT PROPERTIES 
------------------------------------------- 
ant.version: Apache Ant(TM) version 1.9.6 compiled on June 29 2015 
ant.java.version: 1.8 
Is this the Apache Harmony VM? no 
Is this the Kaffe VM? no 
Is this gij/gcj? no 
ant.core.lib: C:\use\ant\lib\ant.jar 
ant.home: C:\use\ant\bin\.. 

------------------------------------------- 
ANT_HOME/lib jar listing 
------------------------------------------- 
ant.home: C:\use\ant\bin\.. 
ant-antlr.jar (11608 bytes) 
ant-apache-bcel.jar (15113 bytes) 
ant-apache-bsf.jar (9787 bytes) 
ant-apache-log4j.jar (8635 bytes) 
ant-apache-oro.jar (9748 bytes) 
ant-apache-regexp.jar (9611 bytes) 
ant-apache-resolver.jar (9680 bytes) 
ant-apache-xalan2.jar (8142 bytes) 
ant-commons-logging.jar (9762 bytes) 
ant-commons-net.jar (91364 bytes) 
ant-jai.jar (28264 bytes) 
ant-javamail.jar (13841 bytes) 
ant-jdepend.jar (13869 bytes) 
ant-jmf.jar (12316 bytes) 
ant-jsch.jar (47689 bytes) 
ant-junit.jar (118491 bytes) 
ant-junit4.jar (13104 bytes) 
ant-launcher.jar (18392 bytes) 
ant-netrexx.jar (16316 bytes) 
ant-swing.jar (13316 bytes) 
ant-testutil.jar (26975 bytes) 
ant.jar (2029794 bytes) 

------------------------------------------- 
USER_HOME/.ant/lib jar listing 
------------------------------------------- 
user.home: C:\Users\ahmed_ashour 
No such directory. 

------------------------------------------- 
Tasks availability 
------------------------------------------- 
image : Missing dependency javax.media.jai.PlanarImage 
sshexec : Missing dependency com.jcraft.jsch.Logger 
scp : Missing dependency com.jcraft.jsch.Logger 
sshsession : Missing dependency com.jcraft.jsch.Logger 
jdepend : Missing dependency jdepend.xmlui.JDepend 
A task being missing/unavailable should only matter if you are trying to use it 

------------------------------------------- 
org.apache.env.Which diagnostics 
------------------------------------------- 
Not available. 
Download it at http://xml.apache.org/commons/ 

------------------------------------------- 
XML Parser information 
------------------------------------------- 
XML Parser : com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl 
XML Parser Location: unknown 
Namespace-aware parser : com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser 
Namespace-aware parser Location: unknown 

------------------------------------------- 
XSLT Processor information 
------------------------------------------- 
XSLT Processor : com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl 
XSLT Processor Location: unknown 

------------------------------------------- 
System properties 
------------------------------------------- 
java.runtime.name : Java(TM) SE Runtime Environment 
sun.boot.library.path : C:\use\jdk8\jre\bin 
java.vm.version : 25.45-b02 
ant.library.dir : C:\use\ant\lib 
java.vm.vendor : Oracle Corporation 
java.vendor.url : http://java.oracle.com/ 
path.separator : ; 
java.vm.name : Java HotSpot(TM) 64-Bit Server VM 
file.encoding.pkg : sun.io 
user.script : 
user.country : US 
sun.java.launcher : SUN_STANDARD 
sun.os.patch.level : Service Pack 1 
java.vm.specification.name : Java Virtual Machine Specification 
user.dir : C:\use\eclipse\workspace\nashorn\make 
java.runtime.version : 1.8.0_45-b15 
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment 
java.endorsed.dirs : C:\use\jdk8\jre\lib\endorsed 
os.arch : amd64 
java.io.tmpdir : C:\Users\AHMED_~1\AppData\Local\Temp\ 
line.separator : 

java.vm.specification.vendor : Oracle Corporation 
user.variant : 
os.name : Windows 7 
ant.home : C:\use\ant\bin\.. 
sun.jnu.encoding : Cp1252 
java.library.path : C:\use\jdk8\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;. 
java.specification.name : Java Platform API Specification 
java.class.version : 52.0 
sun.management.compiler : HotSpot 64-Bit Tiered Compilers 
os.version : 6.1 
user.home : C:\Users\ahmed_ashour 
user.timezone : Europe/Berlin 
java.awt.printerjob : sun.awt.windows.WPrinterJob 
java.specification.version : 1.8 
file.encoding : Cp1252 
user.name : ahmed_ashour 
java.class.path : C:\use\ant\bin\..\lib\ant-launcher.jar;C:\Program Files\PIPC\JDBC\PIJDBCDriver.jar;C:\use\eclipse\workspace\nashorn\make\. 
\;C:\use\ant\lib\ant-antlr.jar;C:\use\ant\lib\ant-apache-bcel.jar;C:\use\ant\lib\ant-apache-bsf.jar;C:\use\ant\lib\ant-apache-log4j.jar;C:\u 
se\ant\lib\ant-apache-oro.jar;C:\use\ant\lib\ant-apache-regexp.jar;C:\use\ant\lib\ant-apache-resolver.jar;C:\use\ant\lib\ant-apache-xalan2.j 
ar;C:\use\ant\lib\ant-commons-logging.jar;C:\use\ant\lib\ant-commons-net.jar;C:\use\ant\lib\ant-jai.jar;C:\use\ant\lib\ant-javamail.jar;C:\u 
se\ant\lib\ant-jdepend.jar;C:\use\ant\lib\ant-jmf.jar;C:\use\ant\lib\ant-jsch.jar;C:\use\ant\lib\ant-junit.jar;C:\use\ant\lib\ant-junit4.jar 
;C:\use\ant\lib\ant-launcher.jar;C:\use\ant\lib\ant-netrexx.jar;C:\use\ant\lib\ant-swing.jar;C:\use\ant\lib\ant-testutil.jar;C:\use\ant\lib\ 
ant.jar;C:\use\jdk8\lib\tools.jar 
java.vm.specification.version : 1.8 
sun.arch.data.model : 64 
java.home : C:\use\jdk8\jre 
sun.java.command : org.apache.tools.ant.launch.Launcher -cp C:\Program Files\PIPC\JDBC\PIJDBCDriver.jar;. -diagnostics 
java.specification.vendor : Oracle Corporation 
user.language : en 
awt.toolkit : sun.awt.windows.WToolkit 
java.vm.info : mixed mode 
java.version : 1.8.0_45 
java.ext.dirs : C:\use\jdk8\jre\lib\ext;C:\Windows\Sun\Java\lib\ext 
sun.boot.class.path : C:\use\jdk8\jre\lib\resources.jar;C:\use\jdk8\jre\lib\rt.jar;C:\use\jdk8\jre\lib\sunrsasign.jar;C:\use\jdk8\jre\lib\js 
se.jar;C:\use\jdk8\jre\lib\jce.jar;C:\use\jdk8\jre\lib\charsets.jar;C:\use\jdk8\jre\lib\jfr.jar;C:\use\jdk8\jre\classes 
sun.stderr.encoding : cp437 
java.vendor : Oracle Corporation 
file.separator : \ 
java.vendor.url.bug : http://bugreport.sun.com/bugreport/ 
sun.cpu.endian : little 
sun.io.unicode.encoding : UnicodeLittle 
sun.stdout.encoding : cp437 
sun.desktop : windows 
sun.cpu.isalist : amd64 

------------------------------------------- 
Temp dir 
------------------------------------------- 
Temp dir is C:\Users\AHMED_~1\AppData\Local\Temp\ 
Temp dir is writeable 
Temp dir alignment with system clock is 147 ms 

------------------------------------------- 
Locale information 
------------------------------------------- 
Timezone Central European Time offset=7200000 

------------------------------------------- 
Proxy information 
------------------------------------------- 
Java1.5+ proxy settings: 
Direct connection 



C:\use\eclipse\workspace\nashorn\make>


More information about the nashorn-dev mailing list