Hi, i DEXed all the jars. Im using the latest apache felix version and latest androidSDK and i creating my dex files on this way:
dx.bat --dex --output=C:\Users\moohkooh\Desktop\felix-android\bin\classes.dex C:\Users\moohkooh\Desktop\felix-android\bin\felix.jar aapt add C:\Users\moohkooh\Desktop\felix-android\bin\felix.jar C:\Users\moohkooh\Desktop\felix-android\bin\classes.dex adb -s 10.0.37.210:5555 push C:\Users\moohkooh\Desktop\felix-android\bin\felix.jar /sdcard/x/bin/felix.jar dx.bat --dex --output=C:\Users\moohkooh\Desktop\felix-android\bundle\classes.dex C:\Users\moohkooh\Desktop\felix-android\bundle\org.apache.felix.shell-1.4.3.jar aapt add C:\Users\moohkooh\Desktop\felix-android\bundle\org.apache.felix.shell-1.4.3.jar C:\Users\moohkooh\Desktop\felix-android\bundle\classes.dex adb -s 10.0.37.210:5555 push C:\Users\moohkooh\Desktop\felix-android\bundle\org.apache.felix.shell-1.4.3.jar /sdcard/x/bundle/org.apache.felix.shell-1.4.3.jar dx.bat --dex --output=C:\Users\moohkooh\Desktop\felix-android\bundle\classes.dex C:\Users\moohkooh\Desktop\felix-android\bundle\org.apache.felix.shell.tui-1.4.1.jar aapt add C:\Users\moohkooh\Desktop\felix-android\bundle\org.apache.felix.shell.tui-1.4.1.jar C:\Users\moohkooh\Desktop\felix-android\bundle\classes.dex adb -s 10.0.37.210:5555 push C:\Users\moohkooh\Desktop\felix-android\bundle\org.apache.felix.shell.tui-1.4.1.jar /sdcard/x/bundle/org.apache.felix.shell.tui-1.4.1.jar After this i try to start felix with the given shell-script command. First i connect to the tabled via "adb -s 10.0.37.210:5555" shell and running the script "sh felix.sh" #/bin/sh /system/bin/dalvikvm -Xbootclasspath:/system/framework/core.jar -classpath bin/felix.jar org.apache.felix.main.Main Durring startup i getting this exception. I dont get why this not working oO Mustafa -------- Original-Nachricht -------- > Datum: Tue, 12 Jun 2012 15:22:20 +0200 > Von: "Přemek Brada" <[email protected]> > An: [email protected] > Betreff: Re: Android and felix > Hi, > > just for the record, here is the answer after I consulted the problem > with my colleague diploma student Jan Záruba (sent directly to > netwalker as well). > > "This exception appears when bundle is not properly DEXed. Is in > felix.jar archive file classes.dex? Did you try it with attached zip > archive > (http://felix.apache.org/site/documentation.data/osgi-android-felix1.4,androidSDK1.0.zip)? > In which phase of tutotial appears this exception?" > > Přemek > > > On 11 June 2012 13:51, ...:::Netwalker:::... <[email protected]> wrote: > > Hi, > > im trying to run the example on > http://felix.apache.org/site/apache-felix-framework-and-google-android.html > on my android tablet, but i always > getting this exception: > > > > Dalvik VM unable to locate class 'org/apache/felix/main/Main' > > java.lang.NoClassDefFoundError: org.apache.felix.main.Main > > at dalvik.system.NativeStart.main(Native Method) > > Caused by: java.lang.ClassNotFoundException: org.apache.felix.main.Main > in loader dalvik.system.PathClassLoader[bin/felix.jar] > > at > dalvik.system.PathClassLoader.findClass(PathClassLoader.java:251) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:540) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:500) > > ... 1 more > > > > Do something know how to handle this problem?? I searching since 3 days > for an answer, but still i didnt find something. > > > > Big thanks! > > netwalker > > -- > > Wenn die Hoffnung in dir Stirb, dann stirbst du mit ihr. > > > > NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! > > Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > -- > Premek Brada (Doc, Ing et MSc, PhD) > Head of Software Engineering and Information Systems Section > Department of Computer Science and Engineering > University of West Bohemia in Pilsen, CZ > << brada at kiv.zcu.cz | www.kiv.zcu.cz/~brada/ | +420-377-63-2435 >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Wenn die Hoffnung in dir Stirb, dann stirbst du mit ihr. NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

