There seems to be some great confusion among some Android users about how Java works on their devices. Apparently there are users who would like to run Java Applets within a web browser on their Android. I thought I might write a post to clear up some of the confusion. Here are a few questions I’ve seen asked in various forums along with some answers.
Why can’t I load a Java Applet on my Android?
Java Applets are built to run within web browsers. Java Applets will not work within a browser in Android as they do not make a plug-in like the ones you’d find for a desktop computer. There are no plans for creating one since the resources required would not suffice on a mobile device and the technology is considered obsolete.
But doesn’t Android run on Java?
Yes. Apps are written in Java and the kernel of the Android OS includes Java compatible libraries. This doesn’t have anything to do with Java Applets running in the web browser though. It’s kind of like asking “My application was written in C++, why can’t it run another C++ application?”. It just doesn’t work that way.
Hopefully this answers many questions for Android users confused about Java. If you have anything to add to this post or a question, feel free to leave comments below.