I'm working through the example code of chapter 4 of Core Servlets and JavaServer Pages (http://volume1.coreservlets.com/archive/Chapter4.html) and I get the above error when I try to compile the BeanUtilities.java file. I thought initially it was my classpath but that seems to include the required .jar files (looking at the starttomcat prompt). I think I have the .jar files in the correct directory ($CATALINA_HOME/lib/ I'm running tomcat 7 on fedora). Any advice? Thanks & I hope your day is going better than mine, sigh.
3214 次
1 に答える
3
Bean utils は、JDK や Tomcat のデフォルト パッケージには含まれていないため、依存関係があるため、手動で追加する必要があります。
J2EE を使用して Web プロジェクトを構築している場合
次に、ディレクトリにbean utils (.jar ファイル) を追加しますWebContent/WEB-INF/lib
。
また、このディレクトリにすべての依存関係を追加します
于 2014-08-07T05:10:07.553 に答える