[LDTP-Dev] NoClassDefFoundError exception when trying to run Java Ldtp example

Nagappan Alagappan nagappan at gmail.com
Wed Jul 23 08:24:30 PDT 2014


Hello,

Just incase for others in the list -
http://ldtp.myfastforum.org/sutra318.php#318

Thanks
Nagappan


On Mon, Jul 7, 2014 at 9:08 AM, Lyubov Averina <averina.lyubov at gmail.com>
wrote:

> 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
>
> --
>
>
> _______________________________________________
> LDTP-dev mailing list
> LDTP-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
>
>


-- 
Cross platform GUI testing
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
Cobra - Windows GUI Automation tool - https://github.com/ldtp/cobra
ATOMac - Mac GUI Automation tool - https://github.com/pyatom/pyatom
http://nagappanal.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/ldtp-dev/attachments/20140723/ea68016a/attachment.html>


More information about the LDTP-dev mailing list