1.打开Project的 "Properties" 2.选中"Java Build Path" 3.打开"Source" tab 页 4.如果里面没有gen和src, 点击 "Add Folder..." 添加相应的目录