Hacker News new | ask | show | jobs
by yissachar 4118 days ago
Regarding targeting the web, you can't do this directly with RoboVM, but you can use GWT to do so. This means that you can target Android, iOS, and web with Java. You would have shared code that all platforms could use, and then build the UIs natively.

This is pretty much the approach that Google use with Inbox, except they used j2objc instead of RoboVM.

2 comments

I've done this successfully with libGDX/RoboVM for my game Feldspar. (http://feldspargame.com)
That's true, thanks for pointing that out. Java-based solutions can target the web "for free".
When you take development time into account, GWT doesn't come for free. Yes, it's possible to compile Java to JS via GWT, but the toolchain is prohibitively slow. In contrast, the Haxe compiler is extremely fast.