Re: Use EOF without WO?
Re: Use EOF without WO?
- Subject: Re: Use EOF without WO?
- From: John Huss <email@hidden>
- Date: Wed, 15 Jun 2011 13:42:14 -0500
On Wed, Jun 15, 2011 at 1:14 PM, Amy Worrall
<email@hidden> 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.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden