Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Can Java Applets Run on Android?

· 6 min read · Home Tech

In this article
  1. What Java Applets Are and Why They Existed
  2. Why Android Can't Run Applets
  3. What Happens If You Try to Open an Applet on Android?
  4. Alternatives for Running Applet Functionality on Android
  5. Common Misconceptions About Java and Android
  6. If You Need to Run a Legacy Applet
  7. Frequently Asked Questions

No, Java applets cannot run on Android. Android does not support the Java Virtual Machine (JVM) or the browser plugin architecture that applets require, and modern browsers have dropped applet support entirely.

What Java Applets Are and Why They Existed

Java applets were small programs written in Java that ran inside a web browser. They were introduced in the mid-1990s to add interactivity to web pages—things like animations, games, and data visualizations. To run an applet, you needed a browser with a Java plugin and the Java Runtime Environment (JRE) installed on your computer. The applet would download and execute in a sandboxed environment, which was supposed to keep it from accessing your system without permission.

Applets were once common, but they fell out of favor due to security vulnerabilities, performance issues, and the rise of alternatives like JavaScript, Flash, and HTML5. Modern browsers no longer support the Java plugin, and Oracle officially deprecated the applet API in Java 9 (released in 2017). As of 2023, applets are essentially obsolete.

Why Android Can't Run Applets

Android does not run Java applets for several fundamental reasons:

  • No JVM: Android apps are written in Java, but they run on the Android Runtime (ART), not the standard Java Virtual Machine. ART compiles app code into native machine code, and it does not support the JVM's applet execution model.
  • No browser plugin support: Android browsers—Chrome, Firefox, Samsung Internet, and others—do not support the Java plugin. In fact, no major browser has supported plugins on Android, and plugin support was removed from desktop browsers years ago.
  • Sandboxing differences: Applets relied on a specific security model tied to the browser and JVM. Android's security model is based on app permissions and process isolation, which is completely different.
  • No applet API: The Android SDK does not include the java.applet package. Even if you tried to compile an applet for Android, the necessary classes would be missing.

In short, applets were designed for a desktop browser environment that no longer exists, and Android never had that environment.

What Happens If You Try to Open an Applet on Android?

If you navigate to a page that still contains an applet, you will see a blank area or an error message like “Plugin not supported” or “Java not available.” The applet simply will not load. There is no official way to enable applet support on Android, and no current Android browser offers it.

Some older versions of Firefox for Android had a “plugin” feature, but it only supported Flash, not Java applets. Even that was removed years ago.

Alternatives for Running Applet Functionality on Android

If you need to use a specific applet—for example, an old corporate tool or an educational simulation—you have a few practical options:

  • Use a remote desktop or VNC app: Connect to a desktop computer that still has a browser with applet support (e.g., an old version of Internet Explorer or a browser with the Java plugin). Then control that computer from your Android device using apps like Microsoft Remote Desktop, TeamViewer, or VNC Viewer.
  • Convert the applet to a standalone Android app: If you have the source code, you can rewrite the applet as a native Android app using Android Studio. This is not a trivial task, but it is the only way to get the exact functionality running locally on Android.
  • Look for a modern replacement: Many applet-based tools have been replaced by HTML5, JavaScript, or server-side applications. Check if the provider offers a newer version that works on mobile browsers.
  • Use a Java-to-Android converter: There are tools like Gluon’s GraalVM or Codename One that can compile Java code to Android, but they do not support the applet API. You would need to modify the code significantly.

None of these are “install an applet on your phone” solutions—they are workarounds, because applets are simply not supported on Android.

Common Misconceptions About Java and Android

A frequent misconception is that because Android apps are written in Java, Android can run any Java program. That is not true. Android uses a subset of the Java language and its own APIs. For example, you cannot run a Java Swing desktop application on Android without rewriting it. The same applies to applets—they rely on desktop-specific APIs and browser integration.

Another misconception is that you can install a “Java virtual machine” app from the Play Store to run applets. There are apps that claim to provide Java environments, but they are either limited to running simple Java ME (Micro Edition) applications or they are not compatible with applets. None of them work for applets in a browser.

If You Need to Run a Legacy Applet

If you absolutely must run a legacy applet, your best bet is to use a desktop computer with an older browser that still supports the Java plugin. Oracle provides instructions for enabling the Java plugin in Internet Explorer 11 on Windows, but even that is no longer recommended due to security risks. For Android, the only realistic path is the remote desktop approach described above.

Before going down that route, check whether the applet has a modern replacement. Many universities and companies have migrated their applet-based tools to HTML5. If not, you might need to contact the developer or vendor to see if they offer an Android-compatible version.

Frequently Asked Questions

Can I install Java on Android to run applets?

No. There is no official Java Runtime Environment for Android, and even if you install a third-party Java environment, it will not include the browser plugin needed for applets. Android’s browser architecture does not support plugins at all.

Are there any Android browsers that support Java applets?

No. No current Android browser supports Java applets. The last browser to support any kind of plugin was Firefox for Android, and it only supported Flash, not Java. That support was removed in 2015.

Can I run a Java applet using an emulator on Android?

You could run a full desktop operating system (like Windows) inside an emulator app on Android, and then use a desktop browser with the Java plugin inside that emulator. This is extremely resource-intensive and impractical for most users. A remote desktop connection to a real computer is a better option.

Is there a way to convert a Java applet to an Android app?

Yes, but it requires rewriting the code. You would need to replace the applet-specific classes (like Applet and Graphics) with Android equivalents, and redesign the UI to fit a mobile screen. This is a development project, not a quick fix.

Why did Java applets disappear?

Java applets disappeared because of security vulnerabilities (they were a common vector for malware), the rise of more secure and performant web technologies like JavaScript and HTML5, and the decision by browser vendors to drop plugin support. Oracle itself deprecated the applet API in 2017.

Can I use JNLP (Java Web Start) files on Android?

No. Java Web Start is a desktop technology that launches standalone Java applications from a browser. It is also deprecated and does not work on Android.