2010/01/07

Google App Engine JSP頁面編譯解決

參考
http://code.google.com/intl/zh-TW/eclipse/docs/faq.html

My JSPs aren't working, and there's an error that says "Your Web Application Project must be configured to use a JDK in order to use JSPs." What happened?

因為需要JDK來編譯JSP頁面、所以要將JDK加入Project的Library裡

步驟:

1. Window > Preferences > Java > Installed JREs
2. Add > Standard VM
3. Directory 選擇裝JDK的目錄
4. Finish後勾選JDK然後OK
5. 右鍵Google App專案、Properties > Java Build Path > Libraries
6. 確定一下是不是在使用JDK 1.6以上版本、是的話就OK了

No comments:

Post a Comment