开发者

how to run .java file or execute a java application in iphone simulator?

开发者 https://www.devze.com 2022-12-11 09:03 出处:网络
I have an application made in java.I have .jar and also the complete source of the project.I want to use it\'s classes in xcode means i want to use function in objective-c without converting them.开发

I have an application made in java.I have .jar and also the complete source of the project.I want to use it's classes in xcode means i want to use function in objective-c without converting them.开发者_运维百科Or is there a way to execute the whole app in iphone simulator or device.please tell me step by step.I have SDK 3.0 and xcode 3.1.4


I doubt whether Apple allows third party run-times (virtual machines) to run on iPhone. Therefore you may not be able to use / link any JVM based classes.


There isn't a JVM on the iPhone; you'll need to write native code. Wikipedia says that it may be possible on jailbroken devices. Good luck!


Java is not available as a jvm does not comply with the Apple license terms.

There is a commercial product for Mono which allows you to program the iPhone in C# (it compiles to native code).

0

精彩评论

暂无评论...
验证码 换一张
取 消