【发布时间】:2016-03-27 13:24:44
【问题描述】:
我正在使用jsp页面开发小程序代码。
<APPLET
id = "app"
codebase="<%=request.getContextPath()%>/lib/"
code="com.myDemo.test.RunApplet.class"
width=100
height=50
archive="myApp1.jar, myApp2.jar">
</APPLET>
我的目录结构是:
DemoProject
-- src (some classes & packeages)
-- build
-- WebContent
-- css (some css file)
-- script (some js file)
-- WEB-INF
-- jsp(some jsp file)
-- myApplet.jsp
-- lib
-- myApp1.jar
-- myApp2.jar
当我执行 myApplet.jsp 时会抛出错误
java.lang.ClassNotFoundException:com.myDemo.test.RunApplet.class
我也申请了
codebase = "."
codebase = "classes"
codebase = "classes/"
但仍然是 ClassNotFoundException。
【问题讨论】: