1.Elcipse里Project Properties里有Project Reference的设置, 在项目名上右键“properties->java build path”,然后在prject选项卡中add一个工作空间中的工程进去就行了。