eclipse配置jdk eclipse→Window→Preferences→Java→Installed JREsAdd→Standard VM (默认的那个,标准虚拟机) →NextJRE home 选择自己jdk安装目录→JRE name 会自动出来→finish选择新添加的jdk,ok