打开eclipse下的Run Configuration... 设置JRE为Jdk下的JRE。 转载自:http://blog.youkuaiyun.com/lisq037/article/details/16885627