Here's a summary of the steps I've been going through.

1. Downloaded the modified code from 1.

2. Downloaded SCA modules from 2 and installed as shown below:

svn checkout --revision 643746 https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/modules

cd modules

mvn clean install -Dtest=no
mvn -Peclipse eclipse:eclipse -Dtest=no

3. Created a new eclipse workspace and set the M2_REPO variable as shown below:

mvn -Declipse.workspace=/Users/.../workspace eclipse:add-maven-repo

4. Added Android Library (ie. android.jar as an external user library) to:

android-jdk-classes

5. Fixed build path entries for JAR's displaying errors on calculator-android:

activation-1.1.jar
axiom-api-1.2.5.jar
cgilib-nodep-2.1_3.jar
geronimo-commonj_1.1_spec-1.0.jar
stax-1.2.0.jar
stax-api-1.0-2.jar

And the JAR's on tuscany-host-embedded

stax-1.2.0.jar
android.jar

6. Adjusted buildpath to eliminate build errors.

7. Uncommented lines in org.apache.tuscany.sca.implementation.java.module.JavaRuntimeModuleActivator

8. Ran retrotranslator as adviced by Taras Puchko, and shown below:

phoenix:19Jun ocastaneda$ java -jar ../Retrotranslator-1.2.6-bin/retrotranslator-transformer-1.2.6.jar -srcdir ../workspace -target 1.5 -reflection safe -stripannot -embed . -classpath ../Retrotranslator-1.2.6-bin/retrotranslator-android-1.2.6.jar -verbose

9. Disabled "Java Builder" from all Eclipse projects.

10. Added retrotranslator-android-1.2.6.jar to calculator-android directly as an external JAR (and not as an external user library).

  • No labels