1)右键入口类(含有Main方法的)==>Run Configurations==>双击(Java Application)==>New==>
(2)在标签Main里选好相应的ProjectName和要运行ClassName,
(3)选标签ClassPath中的Bootstrap Entries ,再从右边点Advance==>Add Library==>JRE System Library,完成,然后将JRE System Library 点中再点Up按钮,OK了