You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by "...:::Netwalker:::..." <do...@gmx.de> on 2012/06/11 13:51:32 UTC

Android and felix

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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by "...:::Netwalker:::..." <do...@gmx.de>.
Hi Johannes,
 possible that you are using wrong compiler level???

regards,
 netwalker


-------- Original-Nachricht --------
> Datum: Thu, 14 Jun 2012 14:39:34 +0200
> Von: "Johannes Mendel" <O-...@gmx.de>
> An: users@felix.apache.org
> Betreff: Re: Android and felix

> I tried that. But when I start the Projekt, there is are some errors:
> Failed resolving Lorg/apache/felix/ipojo/android/felix/Installer;
> interface 55 'Lorg/osgi/framework/BundleActivator;'
> Link of class 'Lorg/apache/felix/ipojo/android/felix/Installer;' failed
> Could not find class 'org.apache.felix.ipojo.android.felix.Installer',
> referenced from method
> org.apache.felix.ipojo.android.felix.ApacheFelix.onStart
> VFY: unable to resolve new-instance 46
> (Lorg/apache/felix/ipojo/android/felix/Installer;) in Lorg/apache/felix/ipojo/android/felix/ApacheFelix;
> 
> I really don't know why this is not working because that class is there!
> 
> Maybe I made some mistakes by importing:
> I created new android-project, imported the files (overwrote the
> automatically generated) and linked the libraries.
> 
> PLEASE HELP, what am I doing wrong?
> 
> 
> -- 
> NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                    
>              
> Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 

-- 
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by "...:::Netwalker:::..." <do...@gmx.de>.
Hi,  
 i imported the project also into my eclipse and running (emulator) to the same exception like johannes. The project.properties is missing, so copy the file from an other android project, but on startup they thrown an exception from johanne.... 

regards,
 netwalker
-------- Original-Nachricht --------
> Datum: Thu, 14 Jun 2012 14:58:29 +0200
> Von: "Johannes Mendel" <O-...@gmx.de>
> An: users@felix.apache.org
> Betreff: Re: Android and felix

> @Karl: if I do so, I get the error: "Project has no project.properties
> file! Edit the project properties to set one." If I fix the project properties
> I get a null pointer exception.
> 
> @Netwalker: what compiler compliance level do you take?
> 
> regards,
> Johannes.
> -- 
> 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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 

-- 
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by Johannes Mendel <O-...@gmx.de>.
@Karl: if I do so, I get the error: "Project has no project.properties file! Edit the project properties to set one." If I fix the project properties I get a null pointer exception.

@Netwalker: what compiler compliance level do you take?

regards,
Johannes.
-- 
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by Karl Pauls <ka...@gmail.com>.
Why didn't you just import the complete project?

regards,

Karl

On Thu, Jun 14, 2012 at 2:39 PM, Johannes Mendel <O-...@gmx.de> wrote:
> I tried that. But when I start the Projekt, there is are some errors:
> Failed resolving Lorg/apache/felix/ipojo/android/felix/Installer; interface 55 'Lorg/osgi/framework/BundleActivator;'
> Link of class 'Lorg/apache/felix/ipojo/android/felix/Installer;' failed
> Could not find class 'org.apache.felix.ipojo.android.felix.Installer', referenced from method org.apache.felix.ipojo.android.felix.ApacheFelix.onStart
> VFY: unable to resolve new-instance 46 (Lorg/apache/felix/ipojo/android/felix/Installer;) in Lorg/apache/felix/ipojo/android/felix/ApacheFelix;
>
> I really don't know why this is not working because that class is there!
>
> Maybe I made some mistakes by importing:
> I created new android-project, imported the files (overwrote the automatically generated) and linked the libraries.
>
> PLEASE HELP, what am I doing wrong?
>
>
> --
> NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
> Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>



-- 
Karl Pauls
karlpauls@gmail.com
http://twitter.com/karlpauls
http://www.linkedin.com/in/karlpauls
https://profiles.google.com/karlpauls

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by Johannes Mendel <O-...@gmx.de>.
I tried that. But when I start the Projekt, there is are some errors:
Failed resolving Lorg/apache/felix/ipojo/android/felix/Installer; interface 55 'Lorg/osgi/framework/BundleActivator;'
Link of class 'Lorg/apache/felix/ipojo/android/felix/Installer;' failed
Could not find class 'org.apache.felix.ipojo.android.felix.Installer', referenced from method org.apache.felix.ipojo.android.felix.ApacheFelix.onStart
VFY: unable to resolve new-instance 46 (Lorg/apache/felix/ipojo/android/felix/Installer;) in Lorg/apache/felix/ipojo/android/felix/ApacheFelix;

I really don't know why this is not working because that class is there!

Maybe I made some mistakes by importing:
I created new android-project, imported the files (overwrote the automatically generated) and linked the libraries.

PLEASE HELP, what am I doing wrong?


-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                                  
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by Karl Pauls <ka...@gmail.com>.
This might give you some ideas:

http://code.google.com/p/felixembeddedonandroid/

regards,

Karl

On Thu, Jun 14, 2012 at 2:11 PM, Johannes Mendel <O-...@gmx.de> wrote:
> Hey,
> I think that I want to do something similar.
>
> I want to create a Service which is listening at a Socket connection of the android and when some data packages arrive the OSGI should start a service where the datas were handled and saved in SQLite Database ,or in other case, read out.
>
> Therefore I need the android.jar in my felix project and later i want to install the service by .apk. Is there somewhere a tutorial or something linke that, or does you / someone know how to realize that?
>
> regards,
> Johannes.
> --
> 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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>



-- 
Karl Pauls
karlpauls@gmail.com
http://twitter.com/karlpauls
http://www.linkedin.com/in/karlpauls
https://profiles.google.com/karlpauls

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by Johannes Mendel <O-...@gmx.de>.
Hey,
I think that I want to do something similar. 

I want to create a Service which is listening at a Socket connection of the android and when some data packages arrive the OSGI should start a service where the datas were handled and saved in SQLite Database ,or in other case, read out.

Therefore I need the android.jar in my felix project and later i want to install the service by .apk. Is there somewhere a tutorial or something linke that, or does you / someone know how to realize that?

regards,
Johannes. 
-- 
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by "...:::Netwalker:::..." <do...@gmx.de>.
HI, 
 yes i mean a android app. Of course i dont really need run felix using dalvikvm directly, but this was my first touch with felix to know if its possible to run felix on android on a tablet ... 

I already checked the page:http://ipojo-dark-side.blogspot.de/2008/10/ipojo-on-android.html
and trying to run the example on my tablet, but i running into the /data/ permission denied problem.... 

First i would like to know if its possible to run felix embedded (with newest version) like "ipojo on android" and if its possible to run my own osgi bundles in the android world. 

regards,
 netwalker

-------- Original-Nachricht --------
> Datum: Thu, 14 Jun 2012 13:30:46 +0200
> Von: Karl Pauls <ka...@gmail.com>
> An: users@felix.apache.org
> Betreff: Re: Android and felix

> If by "app" you mean to say an android app (i.e., an .apk) then I
> don't see why you would try to start felix using dalvikvm directly...
> You'll need to deploy it inside apk anyways no?
> 
> regards,
> 
> Karl
> 
> On Thu, Jun 14, 2012 at 12:57 PM, ...:::Netwalker:::... <do...@gmx.de>
> wrote:
> > Hi,
> >  i get run felix on non rooted android tabled. I only add "export
> ANDROID_DATA=/mnt/sdcard/felix/felix-cache" to my shell-script and run it...
> >
> > script:
> > #/bin/sh
> > export ANDROID_DATA=/mnt/sdcard/felix/felix-cache
> > /system/bin/dalvikvm  -Xbootclasspath:/system/framework/core.jar
> -classpath bin/felix.jar org.apache.felix.main.Main
> >
> >
> > My primary goal is it to develop a small android app, that using some
> OSGI-bundles. Those bundles provides some services that i would like to use
> in my android app...
> >
> > regards,
> >  netwalker
> >
> >
> > -------- Original-Nachricht --------
> >> Datum: Thu, 14 Jun 2012 12:47:38 +0200
> >> Von: Karl Pauls <ka...@gmail.com>
> >> An: users@felix.apache.org
> >> Betreff: Re: Android and felix
> >
> >> It might help if you try to explain what you are trying to do and why
> >> (i.e., what is your goal)...
> >>
> >> That said, if you are trying to run felix on a plain (i.e., not
> >> rooted) android device, it seems strange to run it using dalvikvm
> >> directly. Instead, consider embeding felix into an apk and start as a
> >> background service (you'd have to do the plumbing yourself so).
> >>
> >> regards,
> >>
> >> Karl
> >>
> >> On Thu, Jun 14, 2012 at 12:41 PM, ...:::Netwalker:::...
> <do...@gmx.de>
> >> wrote:
> >> > Hi,
> >> >  big thanks you for your respone. Rooting the device is not a real
> >> option for me :(
> >> > "bootstrap felix through an apk instead of running dalvikvm
> directly."
> >> > Is there any howtos how to bootstrap felix through an apk??
> >> > I trying to run felix embedded i think that is the right way?
> >> >
> >> > regards,
> >> >  netwalker
> >> >
> >> > -------- Original-Nachricht --------
> >> >> Datum: Thu, 14 Jun 2012 10:48:35 +0200
> >> >> Von: Karl Pauls <ka...@gmail.com>
> >> >> An: users@felix.apache.org
> >> >> Betreff: Re: Android and felix
> >> >
> >> >> This path is not under control of felix. Bundles will be installed
> >> >> inside a cache and the path of that cache is controled by felix
> (this
> >> >> includes the classes.dex files of the bundles) - however, we can't
> do
> >> >> anything about the dalvik-cache location for the felix.jar itself.
> >> >>
> >> >> You'll have to search around to see whether there is a dalvikvm
> option
> >> >> to give a different dalvik-cache path. If not, I guess you are stuck
> >> >> with either rooting your device or bootstrap felix through an apk
> >> >> instead of running dalvikvm directly.
> >> >>
> >> >> regards,
> >> >>
> >> >> Karl
> >> >>
> >> >> On Thu, Jun 14, 2012 at 9:39 AM, ...:::Netwalker:::...
> >> <do...@gmx.de>
> >> >> wrote:
> >> >> > Hi,
> >> >> >  i conntected my tablet on my pc and started DDMS from eclipse.
> If i
> >> >> running sh felix.sh from the shell, DDMS logs an exception:
> >> >> >
> >> >> > 06-14 09:35:31.800: E/dalvikvm(8064): Can't open dex cache
> >> >> '/data/dalvik-cache/mnt@sdcard@felix@bin@felix.jar@classes.dex': No
> >> such file or
> >> >> directory
> >> >> > 06-14 09:35:31.800: I/dalvikvm(8064): Unable to open or create
> cache
> >> for
> >> >> bin/felix.jar
> >> >> (/data/dalvik-cache/mnt@sdcard@felix@bin@felix.jar@classes.dex)
> >> >> >
> >> >> > Its possible to configure the cache path on felix???
> >> >> >
> >> >> > Regards,
> >> >> >  netwalker
> >> >> >
> >> >> >
> >> >> > -------- Original-Nachricht --------
> >> >> >> Datum: Thu, 14 Jun 2012 08:13:34 +0200
> >> >> >> Von: "...:::Netwalker:::..." <do...@gmx.de>
> >> >> >> An: users@felix.apache.org
> >> >> >> Betreff: Re: Android and felix
> >> >> >
> >> >> >> 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:::..." <do...@gmx.de>
> >> >> >> > An: users@felix.apache.org
> >> >> >> > 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" <br...@kiv.zcu.cz>
> >> >> >> > > An: users@felix.apache.org
> >> >> >> > > 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:::...
> <do...@gmx.de>
> >> >> 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: users-unsubscribe@felix.apache.org
> >> >> >> > > > For additional commands, e-mail:
> users-help@felix.apache.org
> >> >> >> > > >
> >> >> >> > >
> >> >> >> > >
> >> >> >> > >
> >> >> >> > > --
> >> >> >> > > 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: users-unsubscribe@felix.apache.org
> >> >> >> > > For additional commands, e-mail: users-help@felix.apache.org
> >> >> >> > >
> >> >> >> > --
> >> >> >> > 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: users-unsubscribe@felix.apache.org
> >> >> >> > For additional commands, e-mail: users-help@felix.apache.org
> >> >> >> >
> >> >> >> --
> >> >> >> 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: users-unsubscribe@felix.apache.org
> >> >> >> For additional commands, e-mail: users-help@felix.apache.org
> >> >> >>
> >> >> > --
> >> >> > 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: users-unsubscribe@felix.apache.org
> >> >> > For additional commands, e-mail: users-help@felix.apache.org
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Karl Pauls
> >> >> karlpauls@gmail.com
> >> >> http://twitter.com/karlpauls
> >> >> http://www.linkedin.com/in/karlpauls
> >> >> https://profiles.google.com/karlpauls
> >> >>
> >> >>
> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> >> >> For additional commands, e-mail: users-help@felix.apache.org
> >> >>
> >> > --
> >> > 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: users-unsubscribe@felix.apache.org
> >> > For additional commands, e-mail: users-help@felix.apache.org
> >> >
> >>
> >>
> >>
> >> --
> >> Karl Pauls
> >> karlpauls@gmail.com
> >> http://twitter.com/karlpauls
> >> http://www.linkedin.com/in/karlpauls
> >> https://profiles.google.com/karlpauls
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> >> For additional commands, e-mail: users-help@felix.apache.org
> >>
> > --
> > 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: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> 
> 
> 
> -- 
> Karl Pauls
> karlpauls@gmail.com
> http://twitter.com/karlpauls
> http://www.linkedin.com/in/karlpauls
> https://profiles.google.com/karlpauls
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 
-- 
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by Karl Pauls <ka...@gmail.com>.
If by "app" you mean to say an android app (i.e., an .apk) then I
don't see why you would try to start felix using dalvikvm directly...
You'll need to deploy it inside apk anyways no?

regards,

Karl

On Thu, Jun 14, 2012 at 12:57 PM, ...:::Netwalker:::... <do...@gmx.de> wrote:
> Hi,
>  i get run felix on non rooted android tabled. I only add "export ANDROID_DATA=/mnt/sdcard/felix/felix-cache" to my shell-script and run it...
>
> script:
> #/bin/sh
> export ANDROID_DATA=/mnt/sdcard/felix/felix-cache
> /system/bin/dalvikvm  -Xbootclasspath:/system/framework/core.jar -classpath bin/felix.jar org.apache.felix.main.Main
>
>
> My primary goal is it to develop a small android app, that using some OSGI-bundles. Those bundles provides some services that i would like to use in my android app...
>
> regards,
>  netwalker
>
>
> -------- Original-Nachricht --------
>> Datum: Thu, 14 Jun 2012 12:47:38 +0200
>> Von: Karl Pauls <ka...@gmail.com>
>> An: users@felix.apache.org
>> Betreff: Re: Android and felix
>
>> It might help if you try to explain what you are trying to do and why
>> (i.e., what is your goal)...
>>
>> That said, if you are trying to run felix on a plain (i.e., not
>> rooted) android device, it seems strange to run it using dalvikvm
>> directly. Instead, consider embeding felix into an apk and start as a
>> background service (you'd have to do the plumbing yourself so).
>>
>> regards,
>>
>> Karl
>>
>> On Thu, Jun 14, 2012 at 12:41 PM, ...:::Netwalker:::... <do...@gmx.de>
>> wrote:
>> > Hi,
>> >  big thanks you for your respone. Rooting the device is not a real
>> option for me :(
>> > "bootstrap felix through an apk instead of running dalvikvm directly."
>> > Is there any howtos how to bootstrap felix through an apk??
>> > I trying to run felix embedded i think that is the right way?
>> >
>> > regards,
>> >  netwalker
>> >
>> > -------- Original-Nachricht --------
>> >> Datum: Thu, 14 Jun 2012 10:48:35 +0200
>> >> Von: Karl Pauls <ka...@gmail.com>
>> >> An: users@felix.apache.org
>> >> Betreff: Re: Android and felix
>> >
>> >> This path is not under control of felix. Bundles will be installed
>> >> inside a cache and the path of that cache is controled by felix (this
>> >> includes the classes.dex files of the bundles) - however, we can't do
>> >> anything about the dalvik-cache location for the felix.jar itself.
>> >>
>> >> You'll have to search around to see whether there is a dalvikvm option
>> >> to give a different dalvik-cache path. If not, I guess you are stuck
>> >> with either rooting your device or bootstrap felix through an apk
>> >> instead of running dalvikvm directly.
>> >>
>> >> regards,
>> >>
>> >> Karl
>> >>
>> >> On Thu, Jun 14, 2012 at 9:39 AM, ...:::Netwalker:::...
>> <do...@gmx.de>
>> >> wrote:
>> >> > Hi,
>> >> >  i conntected my tablet on my pc and started DDMS from eclipse. If i
>> >> running sh felix.sh from the shell, DDMS logs an exception:
>> >> >
>> >> > 06-14 09:35:31.800: E/dalvikvm(8064): Can't open dex cache
>> >> '/data/dalvik-cache/mnt@sdcard@felix@bin@felix.jar@classes.dex': No
>> such file or
>> >> directory
>> >> > 06-14 09:35:31.800: I/dalvikvm(8064): Unable to open or create cache
>> for
>> >> bin/felix.jar
>> >> (/data/dalvik-cache/mnt@sdcard@felix@bin@felix.jar@classes.dex)
>> >> >
>> >> > Its possible to configure the cache path on felix???
>> >> >
>> >> > Regards,
>> >> >  netwalker
>> >> >
>> >> >
>> >> > -------- Original-Nachricht --------
>> >> >> Datum: Thu, 14 Jun 2012 08:13:34 +0200
>> >> >> Von: "...:::Netwalker:::..." <do...@gmx.de>
>> >> >> An: users@felix.apache.org
>> >> >> Betreff: Re: Android and felix
>> >> >
>> >> >> 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:::..." <do...@gmx.de>
>> >> >> > An: users@felix.apache.org
>> >> >> > 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" <br...@kiv.zcu.cz>
>> >> >> > > An: users@felix.apache.org
>> >> >> > > 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:::... <do...@gmx.de>
>> >> 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: users-unsubscribe@felix.apache.org
>> >> >> > > > For additional commands, e-mail: users-help@felix.apache.org
>> >> >> > > >
>> >> >> > >
>> >> >> > >
>> >> >> > >
>> >> >> > > --
>> >> >> > > 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: users-unsubscribe@felix.apache.org
>> >> >> > > For additional commands, e-mail: users-help@felix.apache.org
>> >> >> > >
>> >> >> > --
>> >> >> > 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: users-unsubscribe@felix.apache.org
>> >> >> > For additional commands, e-mail: users-help@felix.apache.org
>> >> >> >
>> >> >> --
>> >> >> 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: users-unsubscribe@felix.apache.org
>> >> >> For additional commands, e-mail: users-help@felix.apache.org
>> >> >>
>> >> > --
>> >> > 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: users-unsubscribe@felix.apache.org
>> >> > For additional commands, e-mail: users-help@felix.apache.org
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Karl Pauls
>> >> karlpauls@gmail.com
>> >> http://twitter.com/karlpauls
>> >> http://www.linkedin.com/in/karlpauls
>> >> https://profiles.google.com/karlpauls
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> >> For additional commands, e-mail: users-help@felix.apache.org
>> >>
>> > --
>> > 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: users-unsubscribe@felix.apache.org
>> > For additional commands, e-mail: users-help@felix.apache.org
>> >
>>
>>
>>
>> --
>> Karl Pauls
>> karlpauls@gmail.com
>> http://twitter.com/karlpauls
>> http://www.linkedin.com/in/karlpauls
>> https://profiles.google.com/karlpauls
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
> --
> 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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>



-- 
Karl Pauls
karlpauls@gmail.com
http://twitter.com/karlpauls
http://www.linkedin.com/in/karlpauls
https://profiles.google.com/karlpauls

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by "...:::Netwalker:::..." <do...@gmx.de>.
Hi, 
 i get run felix on non rooted android tabled. I only add "export ANDROID_DATA=/mnt/sdcard/felix/felix-cache" to my shell-script and run it...

script:
#/bin/sh
export ANDROID_DATA=/mnt/sdcard/felix/felix-cache
/system/bin/dalvikvm  -Xbootclasspath:/system/framework/core.jar -classpath bin/felix.jar org.apache.felix.main.Main


My primary goal is it to develop a small android app, that using some OSGI-bundles. Those bundles provides some services that i would like to use in my android app... 

regards, 
 netwalker


-------- Original-Nachricht --------
> Datum: Thu, 14 Jun 2012 12:47:38 +0200
> Von: Karl Pauls <ka...@gmail.com>
> An: users@felix.apache.org
> Betreff: Re: Android and felix

> It might help if you try to explain what you are trying to do and why
> (i.e., what is your goal)...
> 
> That said, if you are trying to run felix on a plain (i.e., not
> rooted) android device, it seems strange to run it using dalvikvm
> directly. Instead, consider embeding felix into an apk and start as a
> background service (you'd have to do the plumbing yourself so).
> 
> regards,
> 
> Karl
> 
> On Thu, Jun 14, 2012 at 12:41 PM, ...:::Netwalker:::... <do...@gmx.de>
> wrote:
> > Hi,
> >  big thanks you for your respone. Rooting the device is not a real
> option for me :(
> > "bootstrap felix through an apk instead of running dalvikvm directly."
> > Is there any howtos how to bootstrap felix through an apk??
> > I trying to run felix embedded i think that is the right way?
> >
> > regards,
> >  netwalker
> >
> > -------- Original-Nachricht --------
> >> Datum: Thu, 14 Jun 2012 10:48:35 +0200
> >> Von: Karl Pauls <ka...@gmail.com>
> >> An: users@felix.apache.org
> >> Betreff: Re: Android and felix
> >
> >> This path is not under control of felix. Bundles will be installed
> >> inside a cache and the path of that cache is controled by felix (this
> >> includes the classes.dex files of the bundles) - however, we can't do
> >> anything about the dalvik-cache location for the felix.jar itself.
> >>
> >> You'll have to search around to see whether there is a dalvikvm option
> >> to give a different dalvik-cache path. If not, I guess you are stuck
> >> with either rooting your device or bootstrap felix through an apk
> >> instead of running dalvikvm directly.
> >>
> >> regards,
> >>
> >> Karl
> >>
> >> On Thu, Jun 14, 2012 at 9:39 AM, ...:::Netwalker:::...
> <do...@gmx.de>
> >> wrote:
> >> > Hi,
> >> >  i conntected my tablet on my pc and started DDMS from eclipse. If i
> >> running sh felix.sh from the shell, DDMS logs an exception:
> >> >
> >> > 06-14 09:35:31.800: E/dalvikvm(8064): Can't open dex cache
> >> '/data/dalvik-cache/mnt@sdcard@felix@bin@felix.jar@classes.dex': No
> such file or
> >> directory
> >> > 06-14 09:35:31.800: I/dalvikvm(8064): Unable to open or create cache
> for
> >> bin/felix.jar
> >> (/data/dalvik-cache/mnt@sdcard@felix@bin@felix.jar@classes.dex)
> >> >
> >> > Its possible to configure the cache path on felix???
> >> >
> >> > Regards,
> >> >  netwalker
> >> >
> >> >
> >> > -------- Original-Nachricht --------
> >> >> Datum: Thu, 14 Jun 2012 08:13:34 +0200
> >> >> Von: "...:::Netwalker:::..." <do...@gmx.de>
> >> >> An: users@felix.apache.org
> >> >> Betreff: Re: Android and felix
> >> >
> >> >> 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:::..." <do...@gmx.de>
> >> >> > An: users@felix.apache.org
> >> >> > 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" <br...@kiv.zcu.cz>
> >> >> > > An: users@felix.apache.org
> >> >> > > 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:::... <do...@gmx.de>
> >> 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: users-unsubscribe@felix.apache.org
> >> >> > > > For additional commands, e-mail: users-help@felix.apache.org
> >> >> > > >
> >> >> > >
> >> >> > >
> >> >> > >
> >> >> > > --
> >> >> > > 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: users-unsubscribe@felix.apache.org
> >> >> > > For additional commands, e-mail: users-help@felix.apache.org
> >> >> > >
> >> >> > --
> >> >> > 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: users-unsubscribe@felix.apache.org
> >> >> > For additional commands, e-mail: users-help@felix.apache.org
> >> >> >
> >> >> --
> >> >> 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: users-unsubscribe@felix.apache.org
> >> >> For additional commands, e-mail: users-help@felix.apache.org
> >> >>
> >> > --
> >> > 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: users-unsubscribe@felix.apache.org
> >> > For additional commands, e-mail: users-help@felix.apache.org
> >> >
> >>
> >>
> >>
> >> --
> >> Karl Pauls
> >> karlpauls@gmail.com
> >> http://twitter.com/karlpauls
> >> http://www.linkedin.com/in/karlpauls
> >> https://profiles.google.com/karlpauls
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> >> For additional commands, e-mail: users-help@felix.apache.org
> >>
> > --
> > 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: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> 
> 
> 
> -- 
> Karl Pauls
> karlpauls@gmail.com
> http://twitter.com/karlpauls
> http://www.linkedin.com/in/karlpauls
> https://profiles.google.com/karlpauls
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 
-- 
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by Karl Pauls <ka...@gmail.com>.
It might help if you try to explain what you are trying to do and why
(i.e., what is your goal)...

That said, if you are trying to run felix on a plain (i.e., not
rooted) android device, it seems strange to run it using dalvikvm
directly. Instead, consider embeding felix into an apk and start as a
background service (you'd have to do the plumbing yourself so).

regards,

Karl

On Thu, Jun 14, 2012 at 12:41 PM, ...:::Netwalker:::... <do...@gmx.de> wrote:
> Hi,
>  big thanks you for your respone. Rooting the device is not a real option for me :(
> "bootstrap felix through an apk instead of running dalvikvm directly."
> Is there any howtos how to bootstrap felix through an apk??
> I trying to run felix embedded i think that is the right way?
>
> regards,
>  netwalker
>
> -------- Original-Nachricht --------
>> Datum: Thu, 14 Jun 2012 10:48:35 +0200
>> Von: Karl Pauls <ka...@gmail.com>
>> An: users@felix.apache.org
>> Betreff: Re: Android and felix
>
>> This path is not under control of felix. Bundles will be installed
>> inside a cache and the path of that cache is controled by felix (this
>> includes the classes.dex files of the bundles) - however, we can't do
>> anything about the dalvik-cache location for the felix.jar itself.
>>
>> You'll have to search around to see whether there is a dalvikvm option
>> to give a different dalvik-cache path. If not, I guess you are stuck
>> with either rooting your device or bootstrap felix through an apk
>> instead of running dalvikvm directly.
>>
>> regards,
>>
>> Karl
>>
>> On Thu, Jun 14, 2012 at 9:39 AM, ...:::Netwalker:::... <do...@gmx.de>
>> wrote:
>> > Hi,
>> >  i conntected my tablet on my pc and started DDMS from eclipse. If i
>> running sh felix.sh from the shell, DDMS logs an exception:
>> >
>> > 06-14 09:35:31.800: E/dalvikvm(8064): Can't open dex cache
>> '/data/dalvik-cache/mnt@sdcard@felix@bin@felix.jar@classes.dex': No such file or
>> directory
>> > 06-14 09:35:31.800: I/dalvikvm(8064): Unable to open or create cache for
>> bin/felix.jar
>> (/data/dalvik-cache/mnt@sdcard@felix@bin@felix.jar@classes.dex)
>> >
>> > Its possible to configure the cache path on felix???
>> >
>> > Regards,
>> >  netwalker
>> >
>> >
>> > -------- Original-Nachricht --------
>> >> Datum: Thu, 14 Jun 2012 08:13:34 +0200
>> >> Von: "...:::Netwalker:::..." <do...@gmx.de>
>> >> An: users@felix.apache.org
>> >> Betreff: Re: Android and felix
>> >
>> >> 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:::..." <do...@gmx.de>
>> >> > An: users@felix.apache.org
>> >> > 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" <br...@kiv.zcu.cz>
>> >> > > An: users@felix.apache.org
>> >> > > 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:::... <do...@gmx.de>
>> 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: users-unsubscribe@felix.apache.org
>> >> > > > For additional commands, e-mail: users-help@felix.apache.org
>> >> > > >
>> >> > >
>> >> > >
>> >> > >
>> >> > > --
>> >> > > 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: users-unsubscribe@felix.apache.org
>> >> > > For additional commands, e-mail: users-help@felix.apache.org
>> >> > >
>> >> > --
>> >> > 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: users-unsubscribe@felix.apache.org
>> >> > For additional commands, e-mail: users-help@felix.apache.org
>> >> >
>> >> --
>> >> 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: users-unsubscribe@felix.apache.org
>> >> For additional commands, e-mail: users-help@felix.apache.org
>> >>
>> > --
>> > 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: users-unsubscribe@felix.apache.org
>> > For additional commands, e-mail: users-help@felix.apache.org
>> >
>>
>>
>>
>> --
>> Karl Pauls
>> karlpauls@gmail.com
>> http://twitter.com/karlpauls
>> http://www.linkedin.com/in/karlpauls
>> https://profiles.google.com/karlpauls
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
> --
> 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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>



-- 
Karl Pauls
karlpauls@gmail.com
http://twitter.com/karlpauls
http://www.linkedin.com/in/karlpauls
https://profiles.google.com/karlpauls

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by "...:::Netwalker:::..." <do...@gmx.de>.
Hi, 
 big thanks you for your respone. Rooting the device is not a real option for me :( 
"bootstrap felix through an apk instead of running dalvikvm directly."
Is there any howtos how to bootstrap felix through an apk?? 
I trying to run felix embedded i think that is the right way? 

regards,
 netwalker

-------- Original-Nachricht --------
> Datum: Thu, 14 Jun 2012 10:48:35 +0200
> Von: Karl Pauls <ka...@gmail.com>
> An: users@felix.apache.org
> Betreff: Re: Android and felix

> This path is not under control of felix. Bundles will be installed
> inside a cache and the path of that cache is controled by felix (this
> includes the classes.dex files of the bundles) - however, we can't do
> anything about the dalvik-cache location for the felix.jar itself.
> 
> You'll have to search around to see whether there is a dalvikvm option
> to give a different dalvik-cache path. If not, I guess you are stuck
> with either rooting your device or bootstrap felix through an apk
> instead of running dalvikvm directly.
> 
> regards,
> 
> Karl
> 
> On Thu, Jun 14, 2012 at 9:39 AM, ...:::Netwalker:::... <do...@gmx.de>
> wrote:
> > Hi,
> >  i conntected my tablet on my pc and started DDMS from eclipse. If i
> running sh felix.sh from the shell, DDMS logs an exception:
> >
> > 06-14 09:35:31.800: E/dalvikvm(8064): Can't open dex cache
> '/data/dalvik-cache/mnt@sdcard@felix@bin@felix.jar@classes.dex': No such file or
> directory
> > 06-14 09:35:31.800: I/dalvikvm(8064): Unable to open or create cache for
> bin/felix.jar
> (/data/dalvik-cache/mnt@sdcard@felix@bin@felix.jar@classes.dex)
> >
> > Its possible to configure the cache path on felix???
> >
> > Regards,
> >  netwalker
> >
> >
> > -------- Original-Nachricht --------
> >> Datum: Thu, 14 Jun 2012 08:13:34 +0200
> >> Von: "...:::Netwalker:::..." <do...@gmx.de>
> >> An: users@felix.apache.org
> >> Betreff: Re: Android and felix
> >
> >> 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:::..." <do...@gmx.de>
> >> > An: users@felix.apache.org
> >> > 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" <br...@kiv.zcu.cz>
> >> > > An: users@felix.apache.org
> >> > > 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:::... <do...@gmx.de>
> 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: users-unsubscribe@felix.apache.org
> >> > > > For additional commands, e-mail: users-help@felix.apache.org
> >> > > >
> >> > >
> >> > >
> >> > >
> >> > > --
> >> > > 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: users-unsubscribe@felix.apache.org
> >> > > For additional commands, e-mail: users-help@felix.apache.org
> >> > >
> >> > --
> >> > 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: users-unsubscribe@felix.apache.org
> >> > For additional commands, e-mail: users-help@felix.apache.org
> >> >
> >> --
> >> 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: users-unsubscribe@felix.apache.org
> >> For additional commands, e-mail: users-help@felix.apache.org
> >>
> > --
> > 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: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> 
> 
> 
> -- 
> Karl Pauls
> karlpauls@gmail.com
> http://twitter.com/karlpauls
> http://www.linkedin.com/in/karlpauls
> https://profiles.google.com/karlpauls
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 
-- 
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by Karl Pauls <ka...@gmail.com>.
This path is not under control of felix. Bundles will be installed
inside a cache and the path of that cache is controled by felix (this
includes the classes.dex files of the bundles) - however, we can't do
anything about the dalvik-cache location for the felix.jar itself.

You'll have to search around to see whether there is a dalvikvm option
to give a different dalvik-cache path. If not, I guess you are stuck
with either rooting your device or bootstrap felix through an apk
instead of running dalvikvm directly.

regards,

Karl

On Thu, Jun 14, 2012 at 9:39 AM, ...:::Netwalker:::... <do...@gmx.de> wrote:
> Hi,
>  i conntected my tablet on my pc and started DDMS from eclipse. If i running sh felix.sh from the shell, DDMS logs an exception:
>
> 06-14 09:35:31.800: E/dalvikvm(8064): Can't open dex cache '/data/dalvik-cache/mnt@sdcard@felix@bin@felix.jar@classes.dex': No such file or directory
> 06-14 09:35:31.800: I/dalvikvm(8064): Unable to open or create cache for bin/felix.jar (/data/dalvik-cache/mnt@sdcard@felix@bin@felix.jar@classes.dex)
>
> Its possible to configure the cache path on felix???
>
> Regards,
>  netwalker
>
>
> -------- Original-Nachricht --------
>> Datum: Thu, 14 Jun 2012 08:13:34 +0200
>> Von: "...:::Netwalker:::..." <do...@gmx.de>
>> An: users@felix.apache.org
>> Betreff: Re: Android and felix
>
>> 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:::..." <do...@gmx.de>
>> > An: users@felix.apache.org
>> > 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" <br...@kiv.zcu.cz>
>> > > An: users@felix.apache.org
>> > > 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:::... <do...@gmx.de> 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: users-unsubscribe@felix.apache.org
>> > > > For additional commands, e-mail: users-help@felix.apache.org
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > 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: users-unsubscribe@felix.apache.org
>> > > For additional commands, e-mail: users-help@felix.apache.org
>> > >
>> > --
>> > 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: users-unsubscribe@felix.apache.org
>> > For additional commands, e-mail: users-help@felix.apache.org
>> >
>> --
>> 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: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
> --
> 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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>



-- 
Karl Pauls
karlpauls@gmail.com
http://twitter.com/karlpauls
http://www.linkedin.com/in/karlpauls
https://profiles.google.com/karlpauls

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by "...:::Netwalker:::..." <do...@gmx.de>.
Hi, 
 i conntected my tablet on my pc and started DDMS from eclipse. If i running sh felix.sh from the shell, DDMS logs an exception:

06-14 09:35:31.800: E/dalvikvm(8064): Can't open dex cache '/data/dalvik-cache/mnt@sdcard@felix@bin@felix.jar@classes.dex': No such file or directory
06-14 09:35:31.800: I/dalvikvm(8064): Unable to open or create cache for bin/felix.jar (/data/dalvik-cache/mnt@sdcard@felix@bin@felix.jar@classes.dex)

Its possible to configure the cache path on felix???

Regards,
 netwalker


-------- Original-Nachricht --------
> Datum: Thu, 14 Jun 2012 08:13:34 +0200
> Von: "...:::Netwalker:::..." <do...@gmx.de>
> An: users@felix.apache.org
> Betreff: Re: Android and felix

> 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:::..." <do...@gmx.de>
> > An: users@felix.apache.org
> > 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" <br...@kiv.zcu.cz>
> > > An: users@felix.apache.org
> > > 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:::... <do...@gmx.de> 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: users-unsubscribe@felix.apache.org
> > > > For additional commands, e-mail: users-help@felix.apache.org
> > > >
> > > 
> > > 
> > > 
> > > -- 
> > > 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: users-unsubscribe@felix.apache.org
> > > For additional commands, e-mail: users-help@felix.apache.org
> > > 
> > -- 
> > 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: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> > 
> -- 
> 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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 
-- 
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by "...:::Netwalker:::..." <do...@gmx.de>.
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:::..." <do...@gmx.de>
> An: users@felix.apache.org
> 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" <br...@kiv.zcu.cz>
> > An: users@felix.apache.org
> > 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:::... <do...@gmx.de> 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: users-unsubscribe@felix.apache.org
> > > For additional commands, e-mail: users-help@felix.apache.org
> > >
> > 
> > 
> > 
> > -- 
> > 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: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> > 
> -- 
> 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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 
-- 
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by "...:::Netwalker:::..." <do...@gmx.de>.
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" <br...@kiv.zcu.cz>
> An: users@felix.apache.org
> 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:::... <do...@gmx.de> 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: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> 
> 
> 
> -- 
> 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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 
-- 
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Android and felix

Posted by Přemek Brada <br...@kiv.zcu.cz>.
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:::... <do...@gmx.de> 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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>



-- 
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org