Main method not found error in an applet

前端 未结 2 2037
野性不改
野性不改 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:32

    Applets don't have a main method, so you cannot run it in the conventional way with the java command.

    To run the applet, create an HTML file with the applet in it, and run appletviewer or view the page in a web browser.

提交回复
热议问题