开发者

Java XStream Cannot Be Resolved On Ubuntu

开发者 https://www.devze.com 2023-03-12 17:24 出处:网络
I have got the XStream package by apt-get install libxstream-java. I\'d like to use the XStream class in my java program, so I try to include the XStream class by importing com.thoughtworks.xst开发者_

I have got the XStream package by apt-get install libxstream-java. I'd like to use the XStream class in my java program, so I try to include the XStream class by importing com.thoughtworks.xst开发者_StackOverflow社区ream.XStream. But it does not work for me complaining the package com.thoughtworks.xstream does not exist. I have found out that the package is installed under directory: usr/share/java. Could someone please explain to me what is happening?


You should add the Xstream.jar to your classpath. See Setting the classpath for more details.

0

精彩评论

暂无评论...
验证码 换一张
取 消