From: Gergely K. <ger...@ma...> - 2010-03-06 08:24:08
|
Hi, You just summarized my experience with Harmony as well. Of course, Harmony was created to provide a Java API implementation on top of a simple Libc, with some JVM specific stubs. I think that it is possible to use parts of Harmony, where it does not use native calls. However, then you will have to implement _everything_ that uses native calls, including the private implementations (org.apache.harmony namespace), which is a lot of work. And it is still not clear how well the cross-compiled code will perform, or it will be too slow for any serious use. Best Regards, Gergely 2010/3/6 Tor Lillqvist <tm...@ik...> > > I did some experiments with it back in December, but at that time I > decided that the amount of work to get it running > > was higher than the expected gain -- at least for our project. > > I have also done some experimentation trying to come up with a minimal > subset of classes from Harmony that would be enough to cover what the > Java code that I am pondering using needs (an existing Open Source > bunch of code, written for a normal Java environment). > > I have attempted to "stub out" stuff as necessary to avoid dependency > explosion. > > But... it seems that it's a never ending struggle. There is always > something missing, then you have a look at those sources in Harmony, > you think "that doesn't look so bad, let's pull that in too", then you > notice it pulls in something new that is missing, you add that, which > then pulls in something else from a totally different part of Harmony, > etc, etc. It's quite hard to find the right places to make the "cuts", > what to "stub out". Or maybe I just don't have a good enough view of > the whole. > > Sigh, maybe I should just give up trying to use the code in question, > this is just for my own free time hacking pleasure anyway, failure > *is* an option... > > --tml > > -- Kis Gergely MattaKis Consulting Email: ger...@ma... Web: http://www.mattakis.com Phone: +36 70 408 1723 Fax: +36 27 998 622 |