Dalvik VM (android.jar) what version of J2SE is it based on?

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Dalvik VM (android.jar) what version of J2SE is it based on?

Postby Steel » Fri Dec 28, 2007 2:08 pm

Bantha Pudu! :x

I'm working with the latest version (android_sdk_windows_m3-rc37a) and I can't find any hint as to which version of J2SE, android.jar is based on.
And there's no help from java.version or java.runtime.version in the system properties:

Code: Select all
-- Environment (System.env)

-- Properties (System.properties)

android.vm.dexfile=true
file.encoding=8859_1
file.separator=/
java.boot.class.path=/system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework-tests.jar
java.class.path=.
java.class.version=46.0
java.compiler=
java.ext.dirs=
java.home=/system
java.io.tmpdir=/tmp
java.library.path=/system/lib
java.runtime.name=Android Runtime
java.runtime.version=0.9
java.specification.name=Dalvik Core Library
java.specification.vendor=The Android Project
java.specification.version=0.9
java.vendor=The Android Project
java.vendor.url=http://www.android.com/
java.version=0
java.vm.name=Dalvik
java.vm.specification.name=Dalvik Virtual Machine Specification
java.vm.specification.vendor=The Android Project
java.vm.specification.version=0.9
java.vm.vendor=The Android Project
java.vm.vendor.url=http://www.android.com/
java.vm.version=0.2.0
line.separator=
os.arch=OS_ARCH
os.name=Linux
os.version=2.6.23-gcc3bc3b4
path.separator=:
user.dir=/
user.home=
user.language=en
user.name=
user.region=US


Anybody got any ideas? It must be post 1.4 since it contains java.nio, but I'd really like the exact version e.g. JDK 1.5.0_07
Steel
Developer
Developer
 
Posts: 48
Joined: Fri Dec 28, 2007 1:11 pm
Location: Herning, Denmark

Top

Postby faldureon » Thu Jan 03, 2008 4:21 am

It supports generics(List<String>) so it could be 5.0; and in the java.sql.DriverManager class the javadoc says that it loads the drivers automatically. This could imply that it is even 6.0. But google is under no obligation to supply all the functionality of 6.0 just because they grabbed a few nifty things from it. They may very well cherry pick the easiest to implement/most useful stuff from across java versions.
faldureon
Developer
Developer
 
Posts: 27
Joined: Sun Dec 02, 2007 10:19 pm

Postby Steel » Tue Feb 12, 2008 12:33 pm

It looks like the Android JAR is derived from a 1.5, since I recently converted a 1.6 application and found that the Arrays.copyOf-method doesn't exist (this was introduced in 1.6)
Steel
Developer
Developer
 
Posts: 48
Joined: Fri Dec 28, 2007 1:11 pm
Location: Herning, Denmark

Postby fresco » Wed Feb 13, 2008 8:43 pm

It can be compatible with java 1.5 but it certainly not derived from it. Dalvik was created by google from scratch, cause they found j2se too heavy for mobile platform.
fresco
Junior Developer
Junior Developer
 
Posts: 24
Joined: Sun Nov 18, 2007 10:36 am

Top

Return to General

Who is online

Users browsing this forum: No registered users and 3 guests