简体   繁体   English

导入edu无法解析

[英]The import edu cannot be resolved

I am using Eclipse Indigo Service Release 2. I created a project, ProjectName, and added a package, packageName. 我正在使用Eclipse Indigo Service Release2。我创建了一个项目ProjectName,并添加了一个包packageName。 I then tried to adde a source file with the following code to the package. 然后,我尝试将带有以下代码的源文件添加到程序包中。

package packageName;

import edu.emory.mathcs.jtransforms.fft.DoubleFFT_1D;

public class ClassName {

}

I get the error message 我收到错误消息

The import edu cannot be resolved

Add a project reference in the ProjectName build path for the jar or project containing the edt.emory.mathcs.jtransforms.fft package. 在包含edt.emory.mathcs.jtransforms.fft包的jar或项目的ProjectName构建路径中添加项目引用。

Here's a tutorial on how to do that in Eclipse. 这是有关如何在Eclipse中执行此操作的教程

I dont use Indigo, but in my Eclipse you would do these steps. 我不使用Indigo,但是在Eclipse中,您可以执行以下步骤。

Right click project and click properties. 右键单击项目,然后单击属性。

Click Java Build Path tab. 单击Java构建路径选项卡。

Add JARs or Add External JARs (whichever it is), find JAR and add. 添加JAR或添加外部JAR(无论哪个),找到JAR并添加。

In the Java Build Path you can also add classes and a few other things. 在Java Build Path中,您还可以添加类和其他一些东西。

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

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