I created a jar file and would like to implement it into my other projects. However, I am getting an error "cannot be resolved to a type." I added the .jar file to the Build Path Libraries within eclipse but the error persists.
EDIT: I tried following the tutorial here: http://www.programcreek.com/2011/07/build-a-java-library-for-yourself/
However, this still does not work.
System.out.println(Simple.add(1,2));
I get the error "Cannot be resolved" on the Simple class name.
EDIT:
package TEST;
public class AccessSimple
{
public void access()
{
System.out.println(Simple.add(1, 2));
}
}
Here is the class I am using to access my jar file. It is not part of the default package.