Java Android 上的 JRE
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/390482/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
JRE on Android
提问by hhafez
This might sound like a stupid question, but google didn't help me.
这可能听起来像一个愚蠢的问题,但谷歌没有帮助我。
Is there a JRE available for Android? If so which version is it? Are there any major features missing?
是否有适用于 Android 的 JRE?如果是,是哪个版本?是否缺少任何主要功能?
If not does that mean all java apps need to be recompiled for Dalvik to work on the Android?
如果不是,这是否意味着所有的 Java 应用程序都需要重新编译才能让 Dalvik 在 Android 上运行?
Update;Will there ever be JRE available for the Android?
更新; 是否会有适用于 Android 的 JRE?
采纳答案by OscarRyz
No, there is not. Google did create a completely different runtime for Android, where the base classes are completely different ( albeit compatible)
不,那里没有。Google 确实为 Android 创建了一个完全不同的运行时,其中的基类完全不同(尽管兼容)
It uses Java as the language ( syntax ) but not the Java platform.
它使用 Java 作为语言(语法)而不是 Java 平台。
You can learn about the Android platform here.
您可以在此处了解 Android 平台。
From that page:
从该页面:
Android includes a set of core libraries that provides mostof the functionality available in the core libraries of the Java programming language.
Android 包含一组核心库,这些库提供了 Java 编程语言核心库中可用的大部分功能。
Read in bold "most".
以粗体“最”阅读。
So, although they look similar, they are not the same.
因此,尽管它们看起来相似,但它们并不相同。
回答by TryTryAgain
The closest I've found is http://www.apogee.com/products/cjre-a
我找到的最接近的是http://www.apogee.com/products/cjre-a
Unfortunately as stated on that page:
不幸的是,如该页面所述:
Note that Apogee temporarily suspended further development of CJREs+A in June, 2012, because of insufficient demand for them. Please, contact Apogee if you are interested in a CJRE+A targeted at a an Android-running device of your choice for "volume" distribution to your customers and/or other third parties.
请注意,Apogee 在 2012 年 6 月暂时中止了 CJREs+A 的进一步开发,因为对它们的需求不足。如果您对针对您选择的 Android 运行设备的 CJRE+A 感兴趣,请联系 Apogee,以便“批量”分发给您的客户和/或其他第三方。
...and a download/demo is nowhere to be found.
...并且无处可找到下载/演示。
Taken from their products page http://www.apogee.com/productsit does sound like it would have been a great thing to have:
取自他们的产品页面http://www.apogee.com/products听起来确实是一件很棒的事情:
CJRE+A - The “CJRE for Android” is suitable for devices running Android v4.x or higher, which need to execute the Java SE 5 and SE 6 applications in addition to executing the Android applications.
CJRE+A - “CJRE for Android”适用于运行 Android v4.x 或更高版本的设备,除了执行 Android 应用程序外,还需要执行 Java SE 5 和 SE 6 应用程序。
We can still dream. I have not contacted them. I am aware of many companies that are looking for this functionality. I can't imagine it will dwindle all too fast (or let's say slower than flash)?
我们仍然可以做梦。我没有联系过他们。我知道许多公司正在寻找此功能。我无法想象它会减少得太快(或者说比闪存慢)?
I have not reached out to Apogee, might be worth a try...If anyone ever finds a solution, please keep us updated! Thanks.
我还没有联系过 Apogee,可能值得一试……如果有人找到解决方案,请及时通知我们!谢谢。