轉測試工作,好久都沒有用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! 好了!