"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
Omkar Khatavkar
unread,
May 25, 2013, 2:57:27 AM5/25/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to testng...@googlegroups.com
I did added class path but still getting error as
E:\Omkar\AutomationAtHome\
DeskeraApps>java org.testng.TestNG testng.xml Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/
ParameterException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.getMethod0(Unknown Source) at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.getMainMethod(Unknown Source) at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.beust.jcommander.ParameterExcep
tion at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 6 more
-- Thanks and Regards,
Omkar Khatvakar
Omkar Khatavkar
unread,
May 25, 2013, 5:07:45 AM5/25/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to testng...@googlegroups.com
Now i am getting an error like below
E:\Omkar\Automation\TestNG>java -cp "e:\Omkar\Automation\TestNG\testng.jar" org.testng.TestNG testng.xml [TestNG] [ERROR] Cannot find class in classpath: classes.Test1
Omkar Khatavkar
unread,
May 26, 2013, 7:02:26 AM5/26/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to testng...@googlegroups.com
After Executing
E:\Omkar\Automation\TestNG>java -cp C:\Users\Shree\.m2\repository\org\testng\testng\6.1.1\testng -6.1.1.jar;E:\Omkar\Automation\TestNG\selenium-server-standalone-2.33.0.jar org.testng.TestNG te
stng.xml [TestNG] [ERROR] Cannot find class in classpath: omkar.Test1
Can any one help me out here, I did added classpath but not able to solve the problem.Also searched whole on stack overflow still did not able to solve this.
Yevhen Bilevych
unread,
May 26, 2013, 8:14:50 AM5/26/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to testng...@googlegroups.com
Omkar,
You may run tests from your working directory (where your package with tests resides).