Posted on 2006-02-16 16:19
云自無心水自閑 閱讀(2693)
評論(0) 編輯 收藏 所屬分類:
Java
1. 創建J2EE工程
2. 在windows->preference->MyEclipse正確配置Tomcat5(需要Tomcat5以上)設置
3. Deployee MyEclipse J2ee Project to server(也就是點工具欄中MyEclipse的第1個按鈕)
4. 點擊Add, 將工程部署到Tomcat中.
5. Run Appliction Server, 選擇Tomcat5
然后, 在Jsp中設置斷點, IE中瀏覽相應的網頁時, 就會跳到Debug Perpective中了, 在視圖中可以在.jsp中調試.
遇到的問題和解決:
如何Tomcat設置的JRE路徑是指到完整的JDK的bin目錄, 比如: d:\jdK1.5\bin
在Run Application Server時會遇到
" A configuration error occurred during startup. Please verify the
preference filed with the prompt: Transport dt_socket failed to
initialize, rc = 509. " 錯誤.
解決方法: 把d:\jdK1.5\jre\bin目錄下的dt_socket.dll拷貝到d:\jdK1.5\bin目錄下.