Main method not found error in an applet

前端 未结 2 2036
野性不改
野性不改 2020-12-22 08:38

At my school I am using Notepad++ to write an applet, and I need to package it in a jar so I can sign it. I am attempting to do this with a batch file like this:

<         


        
2条回答
  •  渐次进展
    2020-12-22 09:15

    You shouldn't run an applet that way. It's not an application to run via the java command, and usually doesn't have a main method (unless you're writing some dual-purpose program). Run it with HTML code. The applet tutorial will show you this, and surely you've read this already.

提交回复
热议问题