转测试工作,好久都没有用eclipse,今天启动tomcat 报错
TO lauch an application,a full jdk(not just a JRE)must be specified.If the selected JRE is actually part of a full JDK,
please update its configration to point to the jdk installation root directory,not to its included jre subdirectory.
设置实用服务器时,没有把JDK的路径加进来.,解决方法:
1、Window-〉Preferences -〉Java->Installed JREs
在其中添加本级安装的JDK
2、Window-〉Preferences -〉MyEclipse-〉Application server->tomcat5.0->JDK
选择安装的JDK,注意,这里必须选择JDK,不可以是JRE
在Eclipse的菜单找到Window-〉Preferences 点击后在弹出窗口的左半部分找到Tomcat,然后在它的子项里找到JVMSetting,点击它,然后在右边的详细内容里吧JRE这个下拉菜单里选上你的JDK版本。
ok! 好了!