Knopflerfish OSGi on the iPod Touch/iPhone 2.1

Well, I don't have any iPhone, but I do have an iPod touch. I'm happy to report that Knopflerfish OSGi runs well on the newly released 2.1 firmware and JamVM 1.5.1.

Quite fun, for being a Sunday. The somewhat hard part was to jailbreak my ipod touch. Then you just install JamVM, copy the usual Knopflerfish directory and do a "java -jar framework.jar"

The snapshots below show the KF http and tty consoles.



Desktop Preferences editor

As of revision 2498, there's a new display in the Swing Desktop: a Preferences editor. It displays and edits both Java java.util.prefs and OSGi org.osgi.service.prefs.

Grab if from the latest trunk release!


P.S. To actually implement the prefs editor, we sneaked in a part of the R4.1 spec, namely the Bundle.getBundleContext() method. For the curious, this was because no admin service was defined to the OSGi prefs API, thus making it necessary to grab other bundle's context (yeah, with the appropriate permisson). Still, the prefs editor will work on older/other frameworks (including the big four) thanks to some reflection hacks :)