CloudSim4.0报错NoClassDefFoundError,Caused by: java.lang.ClassNotFoundException: org.apache.commons.math3.distribution.UniformRealDistribution

今天下载了CloudSim 4.0的代码,运行其中自带的示例程序,结果有一部分运行错误:

原因是找不到org.apache.commons.math3.distribution.UniformRealDistribution类,

解决办法:需要添加引用commons-math3-3.6.1.jar(下载地址:commons-math3-3.6.1.jar)。

步骤:eclipse项目名称右键->Properties->Java Build Path->Labraries->Add External JARs->选择下载好的commons-math3-3.6.1.jar,确定即可。

posted @ 2016-12-21 20:02  morein2008  阅读(1215)  评论(0编辑  收藏  举报