Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cannot find symbol - XStream xstream = new XStream();

807588Jul 2 2009 — edited Jul 2 2009
Hello everyone! :D I'm currently working on something that can load 'configuration' (some kind of cache) via. XML files.
To do so I made a instance of the Object class:
    public static Object load(File file)
    {
        try
        {
            InputStream is = new GZIPInputStream(new FileInputStream(file));
            Object rv = xstream.fromXML(is);
            return rv;
        }
        catch (IOException ioe) {
            System.err.println(ioe.getMessage());
        }
        return null;
    }
And I have initialized the XStream class like this:
private final static XStream xstream = new XStream();
And yes I have imported this:
import com.thoughtworks.xstream.XStream;
But still I get this annoying error...
I store the xstream.jar in a folder named lib. (Together with some other JAR's like: xpp3, mina, hex-string and such things).
If you need more of my code just tell me and I'll post.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 30 2009
Added on Jul 2 2009
22 comments
1,778 views