I am developing applet code using jsp page.
<APPLET
id = "app"
codebase="<%=request.getContextPath()%>/lib/"
code="com.myDemo.test.RunApplet.class"
width=100
height=50
archive="myApp1.jar, myApp2.jar">
</APPLET>
My directory structure is :
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
When i execute myApplet.jsp it will throws the error
java.lang.ClassNotFoundException:com.myDemo.test.RunApplet.class
I had also apply
codebase = "."
codebase = "classes"
codebase = "classes/"
but still ClassNotFoundException.