hi Joe & Paul
Thank you for your fast answer. It is very difficult to describe it more
than I did. I made a simple (standard) test-project where included the
"xstream-1.4.3.jar" to the build path (referenced library). When I run
"XStream xstream = new XStream();" and serialize some objects, everything
works fine as expected. :-)
But when I do the very same thing in my eclipse-plugin, I get the mentioned
ClassNotFoundExceptions. I managed to use other external libraries (like
SQLite), but I am not sure if I included it in the very same way... :S
I get a ton of error-messages, including the following one:
***
Caused by: java.lang.ClassNotFoundException:
com.thoughtworks.xstream.XStream
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 156 more
***
Thanks for your help!
casaout wrote:
>
> hi at all
>
> I want to XML-Serialize my objects and evaluated the use of XStream. In a
> test-project it worked fine, but as soon as I want to use it in my plugin,
> I get ClassNotFoundExceptions when I run "XStream xstream = new
> XStream();".
>
> I added the "xstream-1.4.3.jar" to the build path (referenced library).
> That way it worked in the test-project (not in the plugin-project).
>
> What am I doing wrong?
>
> Thanks for your help!
>
--
View this message in context:
http://old.nabble.com/java.lang.ClassNotFoundException%3A-com.thoughtworks.xstream.XStream-tp34413200p34414959.html
Sent from the xstream - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email