简体   繁体   中英

The import edu cannot be resolved

I am using Eclipse Indigo Service Release 2. I created a project, ProjectName, and added a package, 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.

Here's a tutorial on how to do that in Eclipse.

I dont use Indigo, but in my Eclipse you would do these steps.

Right click project and click properties.

Click Java Build Path tab.

Add JARs or Add External JARs (whichever it is), find JAR and add.

In the Java Build Path you can also add classes and a few other things.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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