简体   繁体   English

尝试使用标准差Java

[英]Trying to use standard deviation java

嗨,我正在尝试使用Apache Commons Math的标准偏差库。我无法导入该库,因为下载zip文件后找不到jar文件。我是否遗漏了一些明显的内容?

Open the Download Commons Math page and download the current binaries release. 打开“ 下载Commons Math”页面并下载当前的二进制版本。 At the moment this is commons-math3-3.0-bin.zip. 目前,这是commons-math3-3.0-bin.zip。 From your comments it is obvious that you downloaded the archive containing sources. 从您的评论中很明显,您下载了包含源的存档。

  1. Unzip the zip file 7zip works great for unzipping things 解压缩zip文件7zip非常适合解压缩文件

  2. Make sure the jar is in the build path for the compiler How to add Jars to your build path in eclipse 确保jar位于编译器的构建路径中。 如何在eclipse中将Jar添加到构建路径中

  3. Profit??? 利润???

Are you sure the jar is in the classpath? 您确定罐子在类路径中吗?

I see the jars in here, Download it from here 我在这里看到罐子,从这里下载

Get a build+dependancy management tool and you will not have problems like this. 获得一个构建+依赖性管理工具,您将不会遇到这样的问题。 I suggest you to go with apache buildr ( quick start ) and a buildr file like this: 我建议您使用apache buildr( 快速入门)和这样的buildr文件:

repositories.remote << 'http://www.ibiblio.org/maven2'

define 'killer-app' do
  project.version = '0.1.0'
  compile.with 'org.apache.commons:commons-math:jar:2.0'
  package :jar
end

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

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