I am developing an Android application which needs some rmi stuff since Android doesn't support rmi by default i found this project can be used to bundle the rmi package with my Android application but i couldn't find a jar which includes java.rmi package. can anybody suggest where to find it? or any other way to use java.rmi with Android
Thanks !!!
It is unlikely that you will be able to use RMI on Android. Even if you took the code for RMI from Apache Harmony or some other source, Android does not like projects attempting to load java.*
classes other than those that ship with the OS, and so will throw a compile error.
It is conceivable that you could use jarjar or simple refactoring to move all the RMI code into some other package (e.g., keshan.java.rmi
), but I have no idea how well that will work.
BTW, here are some more instructions on this process.
来源:https://stackoverflow.com/questions/5321906/how-to-find-the-jar-of-java-rmi-package