Hi, ok the reason why it doesnt work is simple. I always copy the files to my tabled "/sdcard" and thats not working (NoClassDefFoundException).
Now i starting the emulator via eclipse and with the ADT i copy all files from my PC to the Android emulator and with adb shell its possible to run the framework. Big thanks Johannes for this information. So my question is now, why its working in the /data/ folder and not on /sdcard and how can i copy my files to the /data/ folder of my android (without rooting my device) Thanks Netwalker -------- Original-Nachricht -------- > Datum: Wed, 13 Jun 2012 07:41:47 +0200 > Von: "...:::Netwalker:::..." <[email protected]> > An: [email protected] > Betreff: Re: Android and felix > 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] > -- Wenn die Hoffnung in dir Stirb, dann stirbst du mit ihr. Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

