How to Install Java Applet Viewer on Linux? Last Updated : 05 Sep, 2022 Comments Improve Suggest changes Like Article Like Report Applet viewer is a command-line program to run a java applet. It helps you to test an applet before you run it in the browser. The applet's code gets transferred to the system & then the Java Virtual Machine (JVM) of the browser & executes that code. In this article, we will look into the process of installing a Java Applet Viewer on Linux. Installing Java Applet Viewer on Linux: Follow the below steps to install Java Applet Viewer on Linux: Step 1: For installing Java Applet Viewer, you need to first download Java JDK 8. Because Java gives applet only up to JDK version 9 only. Step 2: Open Terminal and execute the below command: sudo apt install openjdk-8-jdk openjdk-8-jre This command will install Java JDK 8. Or if you already installed it, it will give the following output. Step 3: Write a sample applet code. You can write the following code also. Save it by the name Demo.java in a folder which name is also Java. Java import java.awt.*; import java.applet.*; public class Demo extends Applet { public void init() { setForeground(Color.white); setBackground(Color.blue); } public void paint(Graphics g) { g.drawString("Welcome To Java Applet",40,50); } } Step 4: Write the following commands one by one to execute the applet program. cd Java/ ls Demo.class Demo.java javac Demo.java appletviewer Demo.java Step 5: As a result, the program will be executed & give output. Hence Java Applet Viewer is successfully installed. Comment More infoAdvertise with us Next Article How to Install Java JDK9 on Linux? S sounetraghosal2000 Follow Improve Article Tags : Installation Guide how-to-install Similar Reads How to Install Java Applet Viewer in MacOS? An applet is a small Java program that is intended to be run within a web page. Applets are often used to provide interactive features on websites, such as games or graphical tools. They are embedded in HTML pages and are run within a Java-enabled web browser, or within a Java Applet Viewer. Applets 3 min read How to Install Java on Arch Linux? Java is one of the most popular programming languages. Today, many applications are using Java. Java consists of JRE (Java Runtime Environment) and JDK (Java Development Toolkit). JRE is the  Java Runtime Environment which is provided libraries to run and compile Java programs. JDK provides the comp 3 min read How to Install Java Applet Viewer in Windows? Applet Viewer is a command-line program to run Java applets. It is included in the SDK. It helps you to test an applet before you run it in a browser. An applet is a special type of application that's included as a part of an HTML page and can be stored in a web page and run within a web browser. Th 4 min read How to Install Java on Windows, Linux and macOS? Java is a versatile programming language widely used for building applications. To start coding in Java, you first need to install the Java Development Kit (JDK) on your system. This article provides detailed steps for installing Java on Windows 7, 8, 10, 11, Linux Ubuntu, and macOS.Download and Ins 5 min read How to Install Java JDK9 on Linux? As we all know Java is widely used in tech industries, with around 4 billion devices currently using java. This Java installation is going to be very easy and beginner-friendly. In this article, we are going to see a step-by-step guide on how you can install java on your Linux machine. Step-By-Step 4 min read How to Install Apache JMeter on Linux? Apache JMeter is an open-source tool designed for load testing and performance measurement. Itâs widely used by developers and testers for analyzing and measuring the performance of web applications. Here, we will learn the process of installing Apache JMeter on Ubuntu, a popular Linux distribution 3 min read Like