Erik Malm
2011-09-12 05:17:57 UTC
Hello everyone, I've been going slightly mad trying to figure out how to get netbeans IDE and XStream to work together so any help would be appreciated. I've set up a library for xstream and included all .jar files from the distribution. I've also downloaded the source dist and pointed the library to it.
The appearance from within the IDE is that all classes are found, it autocompletes classnames etc and automatic compile on save builds show no errors. However when actually building the code I keep getting:
java.lang.NoClassDefFoundError: com/thoughtworks/xstream/io/HierarchicalStreamDriver error traced back to this line of code:
HierarchicalStreamDriver driver = new Xpp3Driver();
Removing it and just doing XStream test = new XStream(); also throws the same error.
I've opened the .jars and HierarchicalStreamDriver.class is definitley present in the XStream.1.4.1.jar which is included in the library.
Anyone have experience setting up XStream for Netbeans? Any information would be appreciated at this point since I'm completely stumped.
Thanks...
The appearance from within the IDE is that all classes are found, it autocompletes classnames etc and automatic compile on save builds show no errors. However when actually building the code I keep getting:
java.lang.NoClassDefFoundError: com/thoughtworks/xstream/io/HierarchicalStreamDriver error traced back to this line of code:
HierarchicalStreamDriver driver = new Xpp3Driver();
Removing it and just doing XStream test = new XStream(); also throws the same error.
I've opened the .jars and HierarchicalStreamDriver.class is definitley present in the XStream.1.4.1.jar which is included in the library.
Anyone have experience setting up XStream for Netbeans? Any information would be appreciated at this point since I'm completely stumped.
Thanks...