An unofficial, read-only Hacker News reader.

Getting old Java phones online again (opens external site)

178 points by waximabbax 5 days ago | antcating.github.io | 82 comments on HN

View full thread · View on Hacker News

Comment thread (7)

  1. Funny that people call these Java phones. Most of the phone was definitely not Java. Most of the applications on the phone were native. The only things users could install and run however were J2ME (Java 2 Micro Edition) applications. For that it had a simple jvm with a standard library that was limited to the various mobile profiles. I worked at Nokia just before the iphone launched (in the research department). I knew some of the people working on standardization related to J2ME.

    Of course Android is technically much more of a Java phone than these old phones ever were. It supports most of the java standard library and lots of Android specific stuff. And it kept up with Java versions. It does compile the Java to native though, so there's no JVM running. And these days there are also flutter, native, and other applications running on the phone.

    Android knocked the main premise from under J2ME that there was a need for a limited mobile only jvm away as it basically just shipped support for most of the standard library. It did that via the Harmony project that originated in IBM. This allowed Google to dodge the classpath exception in the GPL which is an exception that Sun added to the GPL that allowed dynamic linking on desktop but not on mobile. Thus requiring an expensive commercial license from what was then still Sun for shipping J2ME functionality. That's the basis for what later became the big copyright dispute between Oracle and Google. Harmony was effectively a clean room implementation of the standard library with an Apache 2.0 license.

    Android killed J2ME because it was a proper Java phone with more favorable licensing. Google basically just gave it away to OEMs initially. So, that killed the whole market for Symbian and other proprietary systems. Nokia later open sourcing that did not really stop developers and users leaving. And Nokia abandoning J2ME in favor of native application SDKs did not really help. C++ just wasn't a great fit for mobile developers. Symbian development was notoriously hard. And Nokia stubbornly avoided touching Android until it was about to be gobbled up by MS. An actual Nokia Android phone shipped just before that happened. MS promptly killed that of course. By then windows phone was supposed to save everything, which was another doomed attempt at avoiding Java on mobile. Because MS had a big thing against anything Java.

    Nokia's own Linux based OSes (there were several) actually were closely related to Android but Nokia made a point of never bundling J2ME or a proper JDK. Android and Meego shared what was basically the same kernel and Nokia laid a lot of the ground work for Android to run at all. Early Android versions were tested on N800s even because you could just boot that into something else than Maemo (before the Meego rename). You could actually run Java on Maemo pretty easily. I did that for a research project. I was running Tomcat and a few other things on these things. All it took was an apt-get install.

    Replies (6)
    1. > to dodge the classpath exception in the GPL which is an exception that Sun added to the GPL that allowed dynamic linking on desktop but not on mobile

      Actually, the Classpath exception was introduced by GNU Classpath, another alternative Java classlib similar to Harmony.

    2. FDroid has a J2ME emulator on its repos which even supports internet connections, so Pocket Gopher works under it. Altough today I'd just use Lagrange, but it's cool as a curiousity.
    3. I think it's reasonable to classify computing platforms by their respective user-installable software formats/ecosystems. Most users care about "can I run software/game X on my device", not "what is my device's ABI/ISA/OS/VM". In that sense, Android is also decidedly not a "Java phone", since it can't (at least not natively) run J2ME applications, nor can it even run Java bytecode.

      But yeah, this terminology too falls apart when you consider e.g. Symbian/S60, which supports two (almost) equal application software platforms.

    4. Yet, Android Java and the whole extensions, and behaviour changes made by Android OEMs, make the ecosystem just as of a mess, as J2ME used to be.
    5. I think the major difference was that the J2ME phones had like, 4 MB of RAM, whereas the Android phones started at 192 MB of RAM. Android killed J2ME since they could justify the higher cost of the faster CPU and increased RAM with a proper web browser.

      Re: Nokia and Symbian. Symbian S60 was just bad. I went from a Sony Ericsson K850 to a N70, and it was actually worse at multitasking. The J2ME apps on the SE were actually more efficient than the C++ apps on Symbian.

    6. J2ME is probably precisely what we need (smaller JVM not more bloated), even if JIT replaced the ARM thumb architecture, pushing thumb further with the Java Processor is something humanity will always lack, to have bytecode support in the CPU instructions!

      As big of a mistake as removing Applets, first from browsers and now from the JDK and lately even removing the sandbox that it used; the only true way to securely run foreign software with performance on your computer!