右键Properties “Java build path” - "Libraries",选中要关联的jar,点它前面的小箭头, 点击展开的‘Source attachment',点击右边的’Edit'