Codename One Blog

codenameone.com · Company blog · on HN since 2012

The Codename One team, which makes a Java toolkit for building iOS and Android apps, writes about Java, mobile development and the mobile web.

What HN saysHN commenters bring it up as a Java-based cross-platform mobile option, compared with Xamarin and RoboVM, and one questions its app gallery.
20HN people shared it
7linked it in comments
40stories submitted
268story points
2 years agolast shared
2012people per year2026

Most-shared posts

  1. 1
    Java for iPhone
    8 people · 87 points · first shared 2012 · 30 comments on HN
  2. 2
    Java for Mobile – iOS, Android, Windows
    5 people · 15 points · first shared 2013 · 5 comments on HN
  3. 3
    JavaScript, GROW UP
    3 people · 13 points · first shared 2015 · 2 comments on HN
  4. 4
    Why Java Is Fast and Objective-C Is Slow
    2 people · 8 points · first shared 2015 · 1 comments on HN
  5. 5
    Oracle, please fix JavaFX
    2 people · 3 points · first shared 2015 · 1 comments on HN
  6. 6
    Why is the mobile web slow?
    1 people · 80 points · first shared 2013 · 45 comments on HN
  7. 7
    Tips for Gamifying Your Mobile App
    1 people · 17 points · first shared 2013 · 3 comments on HN
  8. 8
    Why mobile web is slow
    1 people · 11 points · first shared 2014 · 1 comments on HN
  9. 9
    Why your app should be everywhere
    1 people · 5 points · first shared 2015 · discussion on HN
  10. 10
    Java Mobile Development (iOS and Android)
    1 people · 4 points · first shared 2015 · 1 comments on HN
  11. 11
    Building a chat app (iOS and Android)
    1 people · 3 points · first shared 2015 · discussion on HN
  12. 12
  13. 13
    Building a chat app (iOS and Android)
    1 people · 3 points · first shared 2015 · discussion on HN
  14. 14
    Java 2 JavaScript – new alternative to GWT
    1 people · 3 points · first shared 2015 · discussion on HN
  15. 15
    Is J2ME dead?
    1 people · 2 points · first shared 2013 · discussion on HN

What HN people wrote when they linked it

invalidname · 2017-02-21
That is one way to define native. Another is to use the platform native source code and provide access to that. E.g. on Android Xamarin includes an overhead due to constantly passing thru the slow JNI bridge when it needs to communicate with the native UI widgets. It also includes a relatively large overhead because of standard C# libraries that need to be included on iOS/Android. OTOH Codename One ( https://www.codenameone.com/ ) has a very different interpretation of "native". They use their own widget toolkit like QT which makes them "less native" in that regard. But they are native to Android (being Java based) and translate directly to C/Objective-C which means you can literally write OS native code and use native widgets within the hierarchy. I think native is a worthless word in that regard as it doesn't properly convey meaning in these sort of complex situations. Once PhoneGap started billing itself as "native" this all went out of the window...
shannah78 · 2024-12-15
I think Swing is a non-goal of this project. It provides good interop with the DOM and core JS methods, and it makes it easy to create your own interop for JS apis that aren't in the core. There are at least two GUI toolkits that run on TeaVM: 1. Codename One. Similar to swing, but focused on mobile https://www.codenameone.com 2. SnapKit. Targeted at desktop. Also a light-weight toolkit, like Swing. https://github.com/reportmill/SnapKit
pjmlp · 2023-08-15
Naturally depends on the use case, yet they work good enough to be in business for 20 years. https://www.ptc.com/en/products/developer-tools/perc https://www.aicas.com/wp/products-services/jamaicavm-tools/ https://www.codenameone.com/ Android 5 & 6 (only changed back into JIT/AOT due to long compile times), https://www.infoq.com/news/2014/07/art-runtime/ Unfortunely the best well known, Excelsior JET, is no longer in business, most likely due to GraalVM and OpenJ9 being available as free beer, while PTC, Aicas Codename One are safe in their domains. There is also RoboVM (https://github.com/MobiVM/robovm) as free beer, however it actually started as a commercial product, and the acquisition from Xamarin kind of stagnated it (naturally).
thesuperbigfrog · 2022-07-09
>> What is Java's equivalent of Xamarin or Avalonia? Xamarin - RoboVM was a Java-based competitor to Xamarin which Xamarin acquired in 2015, but it was shutdown in 2017 after Microsoft acquired Xamarin. There are some Java-based toolkits such as https://www.codenameone.com/ that target mobile, but they are probably not as well funded as Xamarin has been under Microsoft. From what I hear Xamarin will be deprecated and replaced by MAUI. Avalonia - Java has had multiplatform windowing for much longer than C# has. The Java Swing toolkit has been part of Java for more than a decade and is still supported in OpenJDK. JavaFX (https://openjfx.io/) is a newer toolkit that was originally part of Java and was later spun out into its own project. How well are Xamarin and Avalonia supported if you are doing C# development on Mac or Linux? >> How do I run Java on iOS? As stated above, some tools such as https://www.codenameone.com/ and https://github.com/google/j2objc that convert Java code to target iOS. I have never tried using those tools so I am not sure how good they are.
bitmapbrother · 2017-05-28
>https://www.codenameone.com/gallery.html The Codename One app gallery says otherwise.
nick_dm · 2014-05-28
Their FAQ (http://www.codenameone.com/faq.html) claims that it is possible, though a little complicated (and they'll only provide support if you're on their enterprise plan).
bad_user · 2013-12-14
Besides RoboVM [1], there are also other solutions, like Codename One [2] that's based on XMLVM [3], or Avian [4] which is a new and very promising lightweight VM that can also compile code to native. And there's also J2ObcC [5] a compiler that's being developed and used by Google to share code between Android and iOS. You know, Java can be many things, but you can't beat its ecosystem ;-) [1] http://www.robovm.org/ [2] http://www.codenameone.com/ [3] http://xmlvm.org/overview/ [4] http://oss.readytalk.com/avian/ [5] http://code.google.com/p/j2objc/

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close