Google omzeilt Java-licentie op Android-platform
Google Android is Java en toch ook weer niet. Onlangs bracht Google het Android-platform voor mobiele telefoons uit. Het platform is Linux-gebaseerd en je kunt de software in Java ontwikkelen. Bovendien is alle code beschikbaar onder de Apache licentie (dezelfde als die van de Apache webserver dus). Daarmee is Android open source. Mooi toch?
Mooi, maar wel vreemd. Sun’s Java platform is GPL, en op mobiele platforms geldt dan de eis dat je Java-applicaties ook als GPL moeten worden uitgebracht. Reden voor veel applicatie-ontwikkelaars voor mobiele platforms om Sun geld te betalen, zodat ze hun code voor zichzelf kunnen houden.
Hoe krijgt Google het met Android voor elkaar om Java te gebruiken en toch mensen toe te laten gesloten software voor Android te bouwen?
Heel simpel: er zit geen Java in Android.
Stefano Mazzocchi ontdekte dit als eerste, en legt uit:
Android uses the syntax of the Java platform (the Java “language”, if you wish, which is enough to make java programmers feel at home and IDEs to support the editing smoothly) and the java SE class library but not the Java bytecode or the Java virtual machine to execute it on the phone (and, note, Android’s implementation of the Java SE class library is, indeed, Apache Harmony’s!)The trick is that Google doesn’t claim that Android is a Java platform, although it can run some programs written with the Java language and against some derived version of the Java class library.
Een creatieve aanpak.
Via Planet, Slashdot en Fake Steve Jobs.
Arnoud
Tags:



