On Wed, Jun 15, 2011 at 1:14 PM, Amy Worrall <[email protected]> wrote:

> > 1) JavaFoundation requires some small tweaks to the binary for it to be
> used
> > successfully by android
>
> Thanks ever so much for the sample project. It looks really useful.
> I'll have a chance to play with it more tomorrow.
>
> Out of interest, what did you have to do to Foundation?


Problem 1: You might try to get the JavaFoundation jar
from WebServerResources since you're writing a client app.  But the
JavaFoundation jar in WebServerResources appears to be compressed in a way
that dalvik doesn't like.  However the jar from Resources works just fine.
 The other two jars (EOControl and EODistribution) are identical between WSR
and Resources, so either one is fine.
>
>
Problem 2: Missing class.  There is a class used by these frameworks that is
not defined in Android - sun.security.action.GetPropertyAction.  Fortunately
there is a version available from Apache Harmony under the Apache license.
 Also, it would not be hard to implement by hand if desired.
>
>
Problem 3: Incompatible classes.  NSProperties depends on some classes that
are only used in a servlet deployment and this causes a VerifyError at
runtime.  This a bit trickier to deal with.  My solution is to reimplement
NSProperties from scratch (which is very simple to do)  and then delete the
offending class from JavaFoundation.jar.  Unfortunately you can't just
override it in the classpath order, you have to remove the bad class.  This
is only modification to the binary.

John
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to