<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 7, 2019 at 10:29 AM Pamela Chestek <<a href="mailto:pamela@chesteklegal.com">pamela@chesteklegal.com</a>> wrote:<br></div><div dir="ltr" class="gmail_attr"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">I believe this is an important distinction that is often missed. No,
    Android is not compatible with Java and was not meant to be.</div></blockquote><div><br></div><div>I don't know what that means.  It's true that not every Java program can run on every platform, because platforms don't have exactly the same libraries (though they do share a great deal).  But Java code that</div><div>runs on Android is compiled with any Java-6-level compiler. It's true that the Android VM is not the same piece of code as the Oracle/OpenJDK VM, and uses a different class file format, but the transformation from .class to .dex is straightforward, as both formats are well-documented.</div><div><br></div><div>As further examples, IKVM runs Java on the Common Language Runtime VM (originally Microsoft's but now implemented elsewhere), and the GNU gjc compiler (now abandoned) has no VM at all, basically compiling Java in a way that's compatible with gcc/g++.  Neither has exactly the same libraries as Oracle/OpenJDK.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">"As we
    noted in the prior appeal, however, Google did not seek to foster
    any 'inter-system consistency' between its platform and Oracle's
    Java platform.</div></blockquote><div><br></div><div>So says Oracle, but it's clear that Google went to some trouble (unlike MS with its J# language, now defunct) to keep the core libraries and the language itself compatible.</div><div><br></div><div><br></div><div>John Cowan          <a href="http://vrici.lojban.org/~cowan">http://vrici.lojban.org/~cowan</a>        <a href="mailto:cowan@ccil.org">cowan@ccil.org</a><br>Please leave your values at the front desk.<br>                --sign in Paris hotel<br>Check your assumptions.  In fact, check your assumptions at the door.<br>                --Cordelia Vorkosigan<br></div></div></div>