opensource.luminis.net
 

Running Apache Felix on Google Android

Update
A new community is launched around running Apache Felix an Android: EZdroid community

Apache Felix runs out of the box on Android now; see http://felix.apache.org/site/apache-felix-framework-and-google-android.html .

Description

The OSGi Android project contains code to run Apache Felix, an open source OSGi implementation, on Google Android.

Usage

First of all, please read the excellent blog entry about this topic, which explains how we got Apache Felix to run. Below, you find both a binary distribution and the sourcecode changes we made. Building from source requires you to checkout the current Apache Felix trunk and then overwrite the files found in the source repository below.

The binaries have a fully working copy of Apache Felix, so you can simply unzip the file you downloaded. You will need a copy of the Google Android SDK too.

Step by step

The instructions below are the exact steps you need to take to run the binary. Please note that you need some kind of unix-ish shell (Mac OS X works fine, linux should too) or translate the instructions to your own platform (if you've done that, please comment on this page and we will include the instructions):

export PATH=<path-to-android>/tools:$PATH
unzip osgi-android.zip
cd osgi-android
emulator &
find * -type f -exec adb push {} /root/felix/{} \;
adb shell
cd /root/felix
sh felix.sh

If all went well, you should see the Felix command line shell now. Type "help" for further instructions.

Download

Authors

License

Apache License 2.0

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. May 05

    Anonymous says:

    I tried to run osgi on android using the above code but the emulator always retu...

    I tried to run osgi on android using the above code but the emulator always returns NoClassFoundException for the class org/apache/felix/main/Main. I've check everyting on the command line and everying is present. I've even tried to recompile the classes into dex and it still shows the same error.

    Any idea what am I doing wrong?

    1. May 06

      Angelo vd Sijpt says:

      Hi Anonymous, Felix now runs out of the box on Android; see http://felix.apache...

      Hi Anonymous,

      Felix now runs out of the box on Android; see http://felix.apache.org/site/apache-felix-framework-and-google-android.html for the details.

  2. Jun 02

    Anonymous says:

    the svn checkout of the source code in "Running Apache Felix on Google Android" ...

    the svn checkout of the source code in "Running Apache Felix on Google Android" doesn't work. can you please fix that?
    error:
    HTTP Status 404 - /subversion/oss/projects/osgi-android/trunk/

    type Status report

    message /subversion/oss/projects/osgi-android/trunk/

    description The requested resource (/subversion/oss/projects/osgi-android/trunk/) is not available.

Add Comment


Powered by JIRA Studio 2.2 | Terms of Use | Bug/feature request | Request Support | Help/Documentation