By scheurneus

2014-02-17 18:11:31 8 Comments

I know some 'normal' Java (computer Java), and I want to run such a program on my Android device. Is this possible? If yes, how?


@Himanshu 2014-12-26 17:42:41

You can do it quite easily as there are many ways to run Java apps on Android. Specific application called Java Emulators can do it quite easily.

These are the popular Java emulators for Android: viz, JBED, PhoneME, Jblend and NetMite. There are arranged in order of my preference. You can use PhoneME for unrooted devices; however, if your device is rooted try any of the remaining three applications.

@David BalaĹžic 2014-12-26 18:12:44

If by 'normal' Java (computer Java) you mean Java Standard Edition (J2SE - the Java programs that usually run on a PC, like Eclipse, Vuze etc...) then the answer is most probably no. There is no way to run them directly on Android and there are no (at least not known to me) apps or modifications that allow it.

The apps (emulators) mentioned in other answers are for the J2ME (Java2 Micro Edition, also known as MIDP and applications as "midlets") environment. They are the Java applications for mobile devices that were popular before Android appeared.

@dwgill 2014-02-18 04:17:26

Generally this is not possible as although Android-flavored java has the same syntax and semantics as typical java, it does not run on the same virtual machine (Google has its own VM that android phones all ship with and which has a different byte code format than conventional java VMs) nor does it use or have access to Oracle's java standard library. Google reimplemented most of the important elements (e.g. Google has its own implementation of HashMap, ArrayList, etc.) and ditched a lot of other stuff (e.g. there's no swing package in Google's library).

@Peanut 2014-02-17 18:22:43

You could yry using JBED. JBED is a program designed to offer the possibility to use Java applications (.jar files I believe) on devices with the Android OS. I've never used it so can't personally vouch for it.

@Dan Hulme 2014-02-18 09:30:59

According to the listing on the dodgy third-party site you linked to, it's only for J2ME mobile applets. The OP didn't say if that was what they wanted.

@Peanut 2014-02-18 17:45:00

I know the site isn't great, there's XDA and DroidBeans links if OP wants to Google for it, but it does say it can run .jars which full JavaSE can be exported as. If I get a chance to test it I'll update.

@Andrew T. 2015-02-16 02:47:04

Just for the sake of completeness, this website provides a how-to install and use the app. I tested on Lollipop but it didn't work though (the readme says about Gingerbread, so I'm not sure if it's compatible on the latest Android). (Disclaimer: I don't have any relation with the blog & its blogger. Just curious of this app from another question and found this article)

Related Questions

Sponsored Content

1 Answered Questions

[SOLVED] Do calls to Java native interface in android apps run within Dalvik VM?

  • 2019-03-11 11:41:24
  • Sumesh Kumar
  • 81 View
  • 4 Score
  • 1 Answer
  • Tags:   dalvik java

4 Answered Questions

[SOLVED] Why is there no Java compiler on android?

  • 2016-11-03 21:36:25
  • deltaskelta
  • 1688 View
  • 0 Score
  • 4 Answer
  • Tags:   java development

2 Answered Questions

[SOLVED] How is the Android System running Java jars?

2 Answered Questions

[SOLVED] Why does Android phones need JAVA?

  • 2016-09-01 08:03:35
  • LiudvikaGrazuole
  • 1226 View
  • 1 Score
  • 2 Answer
  • Tags:   samsung java

Sponsored Content