Email to Android Developers

Hi Taras,

After following your suggestion and adding retrotranslator-android-1.2.6.jar as an external library (as opposed to an external user library) the retrotranslator related errors disappeared. I'm now receiving errors about java.rmi.Remote 1, which from what I could find is not supported in Android. I just thought I'd mention it in case you have any suggestions (smile)

Email from Android Developers

I'm glad Retrotrotranslator works for you Oscar. If you just want to get rid of java.rmi.Remote you may replace it with java.lang.Cloneable using the folowing Retrotranslator option:

-backport java.rmi.Remote:java.lang.Cloneable

But in case you have some important code using the java.rmi package you may try to take sources of java.rmi from the Apache Harmony.
Then move the sources into another package, so you'll have, for example, mypack.java.rmi, compile and jar them. After that you may use it with Retrotranslator:

-backport mypack -classpath mypack.jar

But this approach works only if the sources don't employ native code (smile)

  • No labels