[LDTP-Dev] NoClassDefFoundError exception when trying to run Java Ldtp example
Lyubov Averina
averina.lyubov at gmail.com
Mon Jul 7 09:08:22 PDT 2014
Hi all,
I am trying CobraWinLdtp in Windows 7 with Java. I've started from this
example:
https://github.com/ldtp/cobra/blob/master/Example/Java/LdtpTest.java
Had to replace "import com.cobra.ldtp;" with "import com.cobra.ldtp.Ldtp;"
or "import com.cobra.ldtp.*;" or Eclipse won't let me run the code.
When I run it I get exception:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/xmlrpc/XmlRpcException
at LdtpTest.main(LdtpTest.java:81)
Caused by: java.lang.ClassNotFoundException:
org.apache.xmlrpc.XmlRpcException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 1 more
...it occures on string "Ldtp ldtp = new Ldtp("*Notepad");"
Ldtp.jar is added to project's buildbath, file was downloaded from here:
https://code.google.com/p/cobra-winldtp/downloads/list
What am i doing wrong?
Thanks!
Lyubov
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/ldtp-dev/attachments/20140707/5b496f5d/attachment.html>
More information about the LDTP-dev
mailing list