0

C:\test-app-java>echo %classpath% C:\Program Files\Java\jre1.8.0_152;C:\Program Files\Java\jdk1.8.0_152;c:\test-ap p\target\test-classes;C:\Users\murkb001.m2\repository;c:\TestNG\;c:\test-app-ja va;c:\test-app-java\bin

c:\test-app-java> java -cp "C:\TestNG\testng-6.11.jar;c:\TestNG\jcommander-1.7.jar" org.testng.TestNG testng.xml

Error is

C:\test-app-java>java -cp "C:\TestNG\testng-6.11.jar;c:\TestNG\jcommander-1.7.ja r" org.testng.TestNG testng.xml

[TestNG] [ERROR] Cannot find class in classpath: com.wdpr.payment.test.AuthorizePaymentTest

Balu
  • 11
  • 6
  • You are not referring to the build folder of your project which contains your compiled classes. Please see [here](https://stackoverflow.com/a/11897452/679824) – Krishnan Mahadevan Dec 15 '17 at 04:02
  • C:\Users\murkb001\Documents\APP_AUTOMATION\app-tests-latest\test-APP>java -cp "C:/TestNG/testng-6.11.jar;c:/TestNG/jcommander-1.7.jar:./bin" org. testng.TestNG testng.xml Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException – Balu Dec 16 '17 at 17:31
  • my classes are present in bin folder, i have added bin folder to classpath also – Balu Dec 16 '17 at 17:33

0 Answers0