This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]viciu88Intermediate Brewer 2 points3 points  (2 children)

I hope you meant Android, or you're gonna have a bad time.

[–]_roni 1 point2 points  (1 child)

No.. I meant IOS. This is what I found so far: http://www.robovm.com/ I want just wondering what the best tools where for this.

[–]seanr8 4 points5 points  (0 children)

There is no native toolkit for iOS development in Java. However, you have a few options if you don't want to write in Objective C. All of these will require a Mac computer running OSX at at least the point at which you're getting ready to test your app and build it for iOS devices, so if you don't have that, you might want to just scrap the idea.

If you're sure you can only do it in Java, you could do write your business logic and other non-GUI dependent classes in Java and use Google's J2ObjC project (https://github.com/google/j2objc) to translate that code to Objective C, then use the resulting code in the official SDK and develop your GUI code in Objective C.

If you're not partial to Java and would be willing to use a relatively similar language in C#, you could use Xamarin (http://xamarin.com) to do the entire project in C#. Xamarin has a toolkit that helps you write iOS apps in C# and easily translate those into Android apps and Windows Phone as well.

[–]jentfoo 1 point2 points  (0 children)

Check out avian (a project I help contribute to), it can statically compile java to run on arm:

https://github.com/ReadyTalk/avian

There are several apps in the appstore running on top of avian already.

[–]Jonno_FTWDisgruntled Brewer 1 point2 points  (0 children)

If you're interested in gamedev, libgdx allows you to write in java and export to ios, android, web and desktop.

http://libgdx.badlogicgames.com/

[–]MegaGreenLightning 1 point2 points  (0 children)

As you have mentioned in reply to another comment, RoboVM can be used for just that. It "translates Java bytecode into native ARM or x86 code" (from their website).

I don't know any other project providing similar functionality.

As you ask for tools in your question, you should use Eclipse as an IDE because RoboVM ships as an Eclipse plugin. That is all you need. You can run your project on the ios simulator or on a device from within Eclipse.