java rmi 包,如何找到java.rmi包的罐子

尝试在Android应用中使用RMI(远程方法调用)遇到了问题,因为Android默认不支持RMI。从Apache Harmony或其他源获取RMI代码可能会导致编译错误,因为Android不允许加载非系统提供的java.*类。建议考虑将RMI代码重构到不同包名下,或者探索其他在Android上实现远程交互的方法,但效果未可知。此外,还提供了关于此过程的更多指导。
摘要由CSDN通过智能技术生成

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值