| [news.eclipse.newcomer] Re: import a class from another project |
Ed Merks wrote:
Will,
Personally I think you'd be best to use the PDE to help manage your Java Build Path, but you can do it directly using Properties..->Java Build Path->Projects to make A depend on B.
Williams wrote:I created a Java project A. And under A, I would like to import a class from another project B which has a package org.eclipse.example.Myprogram.ClassA. But when i write
import org.eclipse.example.Myprogram.ClassA, I get the following msg:
org.eclipse.example cannot be resolved.
How should I fix the problem? Thanks.
Will