To load the HTML file, you usually need to tell the application the URL of the HTML file youve created. This application might be a Java-compatible browser or another Java applet viewing program, such as the Applet Viewer provided in the JDK. This required attribute specifies the file that.
![run java program in applet viewer run java program in applet viewer](https://www.decodejava.com/App12.jpg)
If you recompile with -Xlint: deprecation Test.java:3:warning: javax. To run the applet, you need to load the HTML file into an application that can run Java applets. A browser that does support Java runs the specified applet and does not display the alternate-text. The program runs and the the Java applet appears in the applet viewer. Step 9: To run the program, select the Welcome.java file, then select Run->Run as->Java Applet from the menu bar. If there are no syntax errors, you can now run the applet.
![run java program in applet viewer run java program in applet viewer](https://media.geeksforgeeks.org/wp-content/uploads/20210911163018/1-660x259.png)
In the past I made a simple product using applet for studying java, but recently when I compiled it to run the past product with JDK11 Caution:Test.java is using or overriding a deprecated API.Ĭaution:Detail is,-Xlint:Recompile with the deprecation option.` Select File->Save from the menu bar to save your work.