Applet ClassNotFoundException - 相对路径?

时间:2018-03-23 13:46:02

标签: java path applet relative-path

我用它在Gadgets.jsp

中显示applet
<applet codebase="../../WEB-INF/classes" code="Gadgets/calculator.class" width="200" height="280">
If your browser was Java-enabled, a Calculator would appear here.
</applet>

但是它显示了一个ClassNotFoundException ...
我也试过

<applet codebase="../WEB-INF/classes" code="Gadgets/calculator.class" width="200" height="280">
If your browser was Java-enabled, a Calculator would appear here.
</applet>

但它仍然显示ClassNotFoundException ...
这是我的文件夹结构:
web - 查看 - Gadgets.jsp

  • 网络
    • 查看
      • Gadgets.jsp
    • WEB-INF
        • 小工具
          • calculator.class

codebase的正确相对路径是什么?

0 个答案:

没有答案