Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the jar of java.rmi package

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

like image 219
Keshan Avatar asked Jan 21 '23 05:01

Keshan


1 Answers

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.

like image 102
CommonsWare Avatar answered Feb 01 '23 17:02

CommonsWare