Java 在 iPad/iPhone 上运行 JAR
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25379554/
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
Running JAR on iPad/iPhone
提问by Daisy
I have a JAR (java application), which I want to run on my iPad. Is that possible, How to do this? If possible through Appstore, (I know the process of Appstore and I have Apple Appstore account), please let me know is it possible to upload jar in Appstore and download from there?
我有一个 JAR(java 应用程序),我想在我的 iPad 上运行它。这可能吗,如何做到这一点?如果可以通过Appstore,(我知道Appstore的流程并且我有Apple Appstore帐户),请告诉我是否可以在Appstore上传jar并从那里下载?
采纳答案by Retro
No, it's not possible to run jar file into iOS or upload to App store. but Oracle ADF Mobile uses a native container that runs applications on both iOS and Android from a single source base. One part of that native container is a headless/lightweight JVM, but it's definitely not a .jar file
不,无法将 jar 文件运行到 iOS 或上传到 App Store。但 Oracle ADF Mobile 使用本机容器,该容器可在 iOS 和 Android 上从单一源库运行应用程序。本机容器的一部分是无头/轻量级 JVM,但它绝对不是 .jar 文件
http://java.dzone.com/articles/oracle-gets-java-running-ioshttp://www.infoworld.com/t/java-programming/java-ios-just-keeps-getting-easier-204543
http://java.dzone.com/articles/oracle-gets-java-running-ios http://www.infoworld.com/t/java-programming/java-ios-just-keeps-getting-easier-204543
回答by Jeremy
That's impossible. Apple doesn't support Java. Apple uses Objective-C as its main language. If I'm not mistaken, Safari on iOS doesn't support Java too so you can't run applet on iOS too.
这不可能。苹果不支持Java。Apple 使用 Objective-C 作为其主要语言。如果我没记错的话,iOS 上的 Safari 也不支持 Java,所以你也不能在 iOS 上运行小程序。