简体   繁体   English

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

[英]“error: package org.apache.commons.math3.random does not exist”?

I'm trying to compile a java code as in the following line : 我正在尝试编译以下行中的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: error: package org.apache.commons.math3.random does not exist import org.apache.commons.math3.random.RandomDataImpl; /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: error: cannot find symbol private RandomDataImpl randomData_; ^ /Users/tim/kws/code/library/ppm/types/LabelPfile.java:50:错误:找不到符号私有RandomDataImpl randomData_; ^ symbol: class RandomDataImpl location: class LabelPfile /Users/tim/kws/code/library/ppm/types/LabelPfile.java:321: error: cannot find symbol randomData_ = new RandomDataImpl(); ^符号:类RandomDataImpl位置:类LabelPfile /Users/tim/kws/code/library/ppm/types/LabelPfile.java:321:错误:找不到符号randomData_ = new RandomDataImpl(); ^ symbol: class RandomDataImpl location: class LabelPfile 3 errors ^符号:类RandomDataImpl位置:类LabelPfile 3错误

does anybody know why am I getting these errors ? 有人知道我为什么会收到这些错误吗?

似乎您缺少commons-math3库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM