在要使用Junit的project名上,点击properties——>Java Build Path——>Libraries,点击Add Library 选择Junit 选择Junit 4,点击Finish 最后点击Apply,再点击OK即可 相关文章: