Eclipse java工程引用另一个工程的类 比如现有工程为 A ,现在要使用A工程中的类的工程为B 那么右击B,properties->java build paths->project->add 选择 A 即可对 A 中类进行引用