Hi Taras,

I'm trying to run Apache Tuscany on Android as part of my Google
Summer of Code project: Incubating and Android in Delft [1]. I've run
all the (modified) source code through retrotranslator but still get
"native method not implemented" errors that I believe are related to
the lack of annotations support on the current Android SDK.

To test Apache Tuscany I'm running a modified calculator project
(setup as an Android project) called calculator-android. I have
imported the Apache Tuscany SCA modules and modified code for Android
into an eclipse workspace. Then I'm running retrotranslator from the
command line as shown below. I'm keeping the target code at java 1.5
but get the annotation related errors when running the calculator-
android as an Android Application. The same thing happens when I try
to convert the code to java 1.4.

$ java -jar /../retrotranslator-transformer-1.2.6.jar -target 1.5 -
stripannot -embed support -reflection safe -classpath /../
retrotranslator-android-1.2.6.jar -srcdir /../workspace/ -verbose

Any advice you may have will be greatly appreciated. There's more
details on what I'm currently doing in [2] in case you can help.

Thanks in advance.

[1] 
http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Allow+Google+Android+applications+to+easily+consume+business+services
[2] http://cwiki.apache.org/confluence/display/TUSCANYWIKI/30may2008

best,
-oscar

On Apr 3, 5:40 pm, Taras Puchko <[EMAIL PROTECTED]> wrote:
> I've made a mistake in my previous post, the correct command is the
> following:
>
> java -jarretrotranslator-transformer-1.2.6.jar -target 1.5 -
> stripannot -embed support -reflection safe -classpathretrotranslator-
> android-1.2.6.jar -srcjar gdata-media-1.0.jar
>
> To use annotations in your code extract classes that contain or
> manipulate annotations into a separate library, translate it 
> withRetrotranslatorand add it as a dependency to the main project.
>
> Regards,
> Taras.
>
> On 3 Кві, 09:42, Taras Puchko <[EMAIL PROTECTED]> wrote:
>
> > If your application does not declare or use annotations itself you may
> > translate the dependency before adding it to the Eclipse project:
>
> > java -jarretrotranslator-transformer-1.2.6.jar -target 1.5 -embed
> > support -reflection safe -stripannot -srcjar gdata-media-1.0.jar
>
> > Regards,
> > Taras.
>
> > On 28 Бер, 17:18, nwmotogeek <[EMAIL PROTECTED]> wrote:
>
> > > That link describes how to add a target to the build.xml but I don't know
> > > how to do that with Eclipse can some one point me to instructions on this?
>
> > > Thanks,
> > > -Dave

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to