Michel van der List on 23 Nov 2011 18:12:11 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Python on Android


Well, google actually provides most of that as part of their environment (i.e the standard java libraries, but of course compiled to .dex files). I haven't run into anything yet that doesn't work. So, although the byte code is different and the VM is different, the framework is largely the same (except for the UI). No reason why you could not compile a .class (created by jython say) to a .dex file. How it works under the hood in eclipse, I do not know and I have little desire to figure it out.

Michel

On 11/23/2011 09:05 PM, Rich Freeman wrote:
On Wed, Nov 23, 2011 at 5:35 PM, Fred Stluka<fred@bristle.com>  wrote:
Since the *.class files (bytecode) are translated to Dalvik *.dex
files, wouldn't any *.class files work, whether they were generated
by Java or any other language that generates JVM bytecodes?
Keep in mind that the Java class libraries aren't available (as far as
I'm aware), so you are fairly unlikely to have any .class files lying
around that will work on an Android system even with translation to
the dalvik bytecodes.  In fact, such a class couldn't actually do
anything since any kind of IO requires using the standard libraries.

Google didn't want to try to license Java so they basically avoided
anything they hold copyright on.

Rich
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug