Can we remove the reliance on sun-jdk-6 ?

218 views
Skip to first unread message

Simon John

unread,
Dec 16, 2011, 5:06:51 AM12/16/11
to android-...@googlegroups.com
Just noticed today that Ubuntu are moving towards disabling sun-jdk-6 in favour of OpenJDK7, and Debian have already stopped packaging it, due to security and license issues after 6u26.

Is there any work going on to remove the dependency on Java6 and specifically the Oracle version, as its going to be increasingly difficult to even get hold of it - how long before Oracle remove 6u29 binaries as its EOL?

Last time I looked there were hardcoded checks for sun-jdk-6 in various makefiles and I've never managed to get AOSP/ICS (or CM7/GB for that matter) to build using anything but sun-jdk-6 even by removing the checks.

JBQ previously said that there are things Oracle's JDK does better than OpenJDK, well if we can't fix them in the compiler, can we not fix/workaround them in the Android side, or maybe move to oracle-jdk-7 as at least its maintained if not packaged.

Jean-Baptiste Queru

unread,
Dec 16, 2011, 10:34:54 AM12/16/11
to android-...@googlegroups.com
Difficult.

One tricky aspect is the licensing side on MacOS, which could cause
some difficulties, so we'll probably want to stick with an Oracle JDK
there.

Another tricky aspect is the product impact. We're certainly not going
to switch to a totally different JDK in the middle of a release, so
for ICS we'll be sticking with the Oracle JDK as well. This is really
bad when combined with the issue above, as we risk seeing different
behaviors depending on whether Android was built with MacOS or Linux.

Finally, we need to fix the build, and that needs to be done by
someone who understands OpenJDK well enough to figure out why OpenJDK
fails to compile Android. Note that if we need to workaround the
OpenJDK incompatibility in Android, we won't be able to go back in
time and fix past releases and those will continue to require the
Oracle JDK.

JBQ

> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Al Sutton

unread,
Dec 16, 2011, 10:31:51 AM12/16/11
to android-...@googlegroups.com
Currently there's no stable Java 7 version for the Mac which is a bit of a roadblock.

Al.
-- 
T: @alsutton W: www.funkyandroid.com

The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries.

Simon John

unread,
Dec 16, 2011, 1:13:54 PM12/16/11
to android-...@googlegroups.com
i thought apple were going to contribute their internal build of openjdk7 to the community by now? http://jdk7.java.net/macportpreview/

it appears there is no oracle jdk7 for macosx at all.

seems a shame to hold back one platform because of another. surely mac builds can stick with 6 (or use a vm like windows) whilst linux move to 7, we don't need to remove v6 support to add v7 surely?

Jean-Baptiste Queru

unread,
Dec 16, 2011, 1:19:55 PM12/16/11
to android-...@googlegroups.com
We don't want to go again to a situation where we allow two different
versions, like we tried to do with 5 and 6, because the people
building with the newer version when they make changes will break the
build for the people still using the older one. As long as MacOS only
has 6, we'll have to use 6 everywhere.

JBQ

> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en

--

Ernst Sjöstrand

unread,
Apr 30, 2012, 8:35:38 AM4/30/12
to android-...@googlegroups.com
Alright, this should improve the situation somewhat!

"The Java SE 7 releases are based on the OpenJDK project and the Mac
OS X version is specifically based on the OpenJDK Mac OS X port."

http://www.h-online.com/open/news/item/First-Mac-OS-X-Java-release-from-Oracle-1562140.html

With this it would be possible to standardize a future Android release
on OpenJDK 7.

Regards
//Ernst Sjöstrand
Sony Mobile

2011/12/16 Jean-Baptiste Queru <j...@android.com>:

Al Sutton

unread,
Apr 30, 2012, 11:01:34 AM4/30/12
to android-...@googlegroups.com
Except that release is for Lion (10.7) and above and there are issues with Xcode on Lion not creating a usable emulator.

The only thing which currently could make Java 7 viable would be a supported release runnable on Snow Leopard (10.6).

Al.
-- 
Al Sutton - Funky Android Ltd.
T: @alsutton  

The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. 
Reply all
Reply to author
Forward
0 new messages