解决方法: window---->perferences----->General------->editors------>file associations选择jap------->选择相应的editor 为default 就可