Read up on applets and how they are executed in a browser:
Lesson: Java Applets (The Java™ Tutorials > Deployment)
Applets doe NOT use a main() method. That's for apps
Type: Posts; User: Norm
Read up on applets and how they are executed in a browser:
Lesson: Java Applets (The Java™ Tutorials > Deployment)
Applets doe NOT use a main() method. That's for apps
How are you executing the code? Applets are meant to run in a browser not with the java command.