OK, after many painstaking hours of importing just enough source code from Open JDK (and resolving broken references) there are no source errors left in my Eclipse project, but now I get the following error message:

Attempt to include a core VM class in something other than a core library.
It is likely that you have attempted to include the core library from a desktop
virtual machine into an application, which will most assuredly not work. If
you really intend to build a core library -- which is only appropriate as
part of creating a full virtual machine binary, as opposed to compiling an
application -- then use the "--core-library" option to suppress this error
message. If you go ahead and use "--core-library" but are in fact building
an application, then please be aware that your build will still fail at some
point; you will simply be denied the pleasure of reading this helpful error
message.
[2008-10-21 13:55:04 - Android Kodak Proofing Software] 1 error; aborting
[2008-10-21 13:55:04 - Android Kodak Proofing Software] Conversion to Dalvik format failed with error 1

Does anyone have any suggested course of action from here? I really would like to get RMI working in my Android application.

By the way, for something that sounds so simple (Remote Method Invocation), RMI is sure one huge pig of dependencies on other APIs. With all that code behind it, RMI should be able to make cappuccino and toast bagels too. I apologize if that remark offends anyone who's worked to develop RMI, but the expansiveness of dependencies really took me by surprise. I can honestly see why Google didn't want to include RMI in the first release of Android. It would be really nice if Sun (or someone) could create an RMI-lite that just provides the core functionality of Remote Method Invocation. Alternately we'll just have to wait until mobile phones are powerful enough to support the full JSE.

Cheers, Eric

Eric Kolotyluk wrote:
OK, I've copied in the RMI packages - most of it compiled without errors, but much of it requires reference to the sun... packages

sun.rmi.server.MarshalInputStream
sun.rmi.server.MarshalOutputStream

etc.

I'm currently looking around for source code for that. Searching via Google has not turned up anything yet. When I have time I'll have dig deeper into the Open JDK stuff and see if I can find any source code there.

Anyway, it's something to try. Thanks Mark for tip...

Cheers, Eric

Mark Murphy wrote:
Eric Kolotyluk wrote:
  
I know Android 1.0 does not come with RMI, but as a developer is there
a way to add RMI to an Activity/Application? If so, how would one go
about doing it? Details would be greatly appreciated.
    

As far as I'm concerned, you'll be better served switching to something 
more Internet-friendly. But, if you insist...

Your first step is to find an RMI implementation somewhere that you can 
get source to. GNU Classpath, the open JDK from Sun, etc. If you can't 
find one, see my first paragraph... ;-)

Then you add that RMI package to your app, compile, and pray there are 
no major dependency issues on other stuff. If there are, find those 
sources, add those to your app, lather, rinse, repeat.

Then, test it within an inch of its life, to make sure there aren't 
Dalvik-isms that cause RMI-on-Dalvik to behave differently than 
RMI-on-wherever-you-got-it-from.

At that point, you package up the RMI-on-Android stuff in its own JAR, 
put it on code.google.com, announce it here, and get anointed as a 
steely-eyed Android guy. :-)

  





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to