“错误:包org.apache.commons.math3.random不存在”?

时间:2014-02-19 18:02:08

标签: java apache package

我正在尝试编译java代码,如下所示:

  javac -classpath /Users/tim/kws/code/library:/Users/moab/kws/code/commons-cli-1.2/commons-cli-1.2.jar:/Users/tim/kws/code/commons-math-2.2/commons-math-2.2.jar:/Users/tim/kws/code/common-math3-3.1.1/commons-math3-3.1.1.jar RATSWriteLandmarksFromPfile.java 

/Users/tim/kws/code/library/ppm/types/LabelPfile.java:17:错误:包org.apache.commons.math3.random不存在 import org.apache.commons.math3.random.RandomDataImpl;                                       ^ /Users/tim/kws/code/library/ppm/types/LabelPfile.java:50:错误:找不到符号     private RandomDataImpl randomData_;             ^   符号:类RandomDataImpl   location:类LabelPfile /Users/tim/kws/code/library/ppm/types/LabelPfile.java:321:错误:找不到符号         randomData_ = new RandomDataImpl();                           ^   符号:类RandomDataImpl   location:类LabelPfile 3个错误

有人知道为什么我会收到这些错误吗?

1 个答案:

答案 0 :(得分:0)

好像你错过了commons-math3库。