tags:

views:

41

answers:

2

I have used the folllowing steps to add classes to my build path still i am geting errors as import not resolved.I had followed the following steps.

  1. Select Create New Folder and name it TpmWebUIClasses.
  2. Click the Advanced >> button and select the Link to folder in the file system check box.
  3. Browse for to the folder where you have copied the classes
  4. Make sure the selected folder is listed and then click OK.

How can i resolve the error?

+3  A: 

Right click your project > Properties > Java build path > Libraries > Add Class Folder

But it is much better to package these classes as a .jar and add it with Add JARs from the same screen. Another way is to make one project depend on another (whose classes are those in question).

Now, if you mean .java files rather than .class files, you just add a Source folder from the first tab on the Java build path screen. And be sure to make the distinction between .java and .class files.

Bozho
thnks man,It worked
akshay
+1  A: 

There is a difference between folder and source folder. Right-click the folder and use Build Path/Use as Source Folder menu option.

Ha
thanks for replying
akshay