Running Java Applets with Appletviewer

Another way to run the Java applets is to use Appletviewer application, which is a part of Java SDK (Software Development Kit). First, you need to download SDK from the Oracle website. Do do it, open this link in your browser: https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html and select the download corresponding to the Operating System installed on your computer. For example, if you run 64-bit Windows, the right file to download is circled below.

Oracle requires to sign up for downloading this software. Once it is downloaded, click on it to install and follow instructions on screen. Agree with all offered default settings. After installation you will get two folders in your Program files\Java folder. One of them is for JDK, and appletviewer application is in its bin subfolder.

Next step is download the ZIP archive for the applet to run from the course web page. For example, use the ZIP archive link for the Message Segmentation applet shown in the following image.

Unzip the downloaded archive, say, to the Switching folder. Now, open the command prompt (type CMD on Windows) and use cd command to navigate to your applet folder.

Finally, call the appletviewer by typing its name followed by index.html and hit Enter. For the above example

Voilà, the applet is running now.