Applet trouble - NoClassDefFoundError

后端 未结 3 1231
太阳男子
太阳男子 2020-12-18 08:01

I realize there\'s a million of these posts but none of them have helped me so here goes: I\'m trying to deploy a very, very simple applet that will not load properly. My HT

3条回答
  •  旧巷少年郎
    2020-12-18 08:42

    • /home/me/workspace/myProject/bin
      • applet.html
      • /home/me/workspace/myProject/bin/test
        1. SimpleApplet.class

    If the class SimpleApplet is in package test put the HTML in the parent directory (as detailed above), and use this HTML.

    
    
        
    
    
       
    
    
    

    Side tips:

    • When posting code, post the imports and package statement as well, or in other words, all of it. As it is we need to make guesses about things; but with the full code, we would not have to.
    • Don't attempt applets at this stage. You should sort out working with packages on the command line, and applets are more difficult than applications with a GUI.

提交回复
热议问题