How to find the jar of java.rmi package

百般思念 提交于 2019-11-26 18:10:38

问题


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 !!!


回答1:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!