Running applets

Answered
I am trying to create an applet in intelij (currently just a 'hello world' program to understand the basics), despite looking around on line I do mot understand how to run it in this software. I was just wondering if there is a basic way to run an applet?
0
4 comments
Avatar
Permanently deleted user

Are you sure you really want to use Java applets? Applets is a pretty old way of running Java applications in a web browser ( https://en.wikipedia.org/wiki/Java_applet ) that you probably shouldn't use.

 

0
Avatar
Permanently deleted user

Okay thank you. Do you happen to know if there is a more modern alternative?

0

To run an Applet, use Applet Run/Debug configuration:

https://www.jetbrains.com/help/idea/run-debug-configuration-applet.html

1
Avatar
Permanently deleted user

Well that depends on what you want to do.

If you want to run a local application on your computer then a plain Java application would work fine ( https://www.jetbrains.com/help/idea/creating-and-running-your-first-java-application.html ).

If you want to run something in a web browser then you might want to take look at Spring boot and/or Java EE. This is a bit more complicated and involves running your code in a server/container and using other stuff like HTML and javascript. Notice that Java EE and Spring support requires Ultimate edition of IntelliJ.

1

Please sign in to leave a comment.