Where can I get sun-java6-jdk?

5,262 views
Skip to first unread message

John Bachus

unread,
Apr 17, 2012, 1:57:05 PM4/17/12
to android-...@googlegroups.com
I wanted to build Android but ran into a problem when following directions.

I entered the following line to install the java6-jdk:
sudo apt-get install sun-java6-jdk

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'sun-java6-jdk' has no installation candidate

The instructions also say, "Android ICS (4.0.3) needs Java 6."
Is there another source for java6-jdk?

Thanks

Kevin Kim

unread,
Apr 17, 2012, 3:50:28 PM4/17/12
to android-...@googlegroups.com

I believe due to release of a java 7 you can't apt-get 6 anymore.

I could be wrong, but

--
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

John Bachus

unread,
Apr 17, 2012, 4:14:52 PM4/17/12
to android-...@googlegroups.com
I found a copy of java6-jdk on another Android (Gingerbread) VM build.
From what I could find out, the java6-jdk has been only given until November till EOL.
Any plans to upgrading?

However, now I ran into an error when building Android:

cc1plus: all warnings being treated as errors

make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1

Many of the warnings are redefinitions. The following are also some examples of the warnings:
mkbootimg.c:228:9: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
system/core/mkbootimg/mkbootimg.c:241:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mkyaffs2image.c:195:26: warning: array subscript is above array bounds [-Warray-bounds]

My command line is:

make TARGET_PRODUCT=beagleboard OMAPES=5.x -j4
Any ideas why these warnings are causing the build to abort? Its as if the C compiler is not the same one used to build these files even though it is at the beginning of the path supplied in the instructions.


----- Original Message -----

From: John Bachus

Sent: 04/17/12 01:57 PM

To: android-...@googlegroups.com

Subject: [android-building] Where can I get sun-java6-jdk?

Joman Chu

unread,
Apr 17, 2012, 7:13:19 PM4/17/12
to android-...@googlegroups.com
Debian and Ubuntu both removed Sun Java 6 from their repositories a
few months ago.

You can install Sun Java 6 locally though. I put up some instructions
here: https://notatypewriter.wordpress.com/2012/04/15/installing-sun-java-eclipse-and-android-sdk-on-ubuntu-10-04/

mark gross

unread,
Apr 17, 2012, 10:09:37 PM4/17/12
to android-...@googlegroups.com
That's about what I do.  but I put the jdk in my $HOME/bin/ instead.  (note: I don't think you need eclipse to build aosp )

--mark
--
create interesting things.

Andy Panda

unread,
Apr 18, 2012, 11:42:51 AM4/18/12
to android-...@googlegroups.com
Power of Debian still with you:
http://snapshot.debian.org/binary/sun-java6-jdk/

You can download latest available packages from that place (this will be version 6.26-3)

Also you need 3 packages and few packages from ubuntu repo (like java-common and unixodbc):
sun-java6-bin
sun-java6-jre
sun-java6-jdk

Вівторок, 17 квітня 2012 р. 20:57:05 UTC+3 користувач aglets написав:

Atte Peltomaki

unread,
Apr 19, 2012, 5:13:04 AM4/19/12
to android-...@googlegroups.com
On Wed, Apr 18, 2012 at 05:42:51PM +0200, Andy Panda wrote:
> Power of Debian still with you:
> http://snapshot.debian.org/binary/sun-java6-jdk/
>
> You can download latest available packages from that place (this will
> be version 6.26-3)

All Java 6 versions prior to 6.31 have security issues. Installing Java
from official Oracle package is not difficult, or you can check out this
script for a simple way of rolling your own .deb packages:

https://github.com/flexiondotorg/oab-java6

--
Atte Peltomäki
NVIDIA Corporation
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

KGizzle

unread,
Apr 19, 2012, 8:49:55 PM4/19/12
to Android Building
I followed this link on my system and it was very helpful and easy to
use for n00b such as myself:

http://askubuntu.com/questions/67909/how-do-i-install-oracles-jdk-6

key Jan

unread,
Apr 26, 2012, 9:34:16 PM4/26/12
to android-...@googlegroups.com
it's for sun jdk1.6,and downloader for the local,then manul for installs to it,and configure to enviroment for it,ok

2012/4/18 Andy Panda <loland...@gmail.com>
--

Magnus Bäck

unread,
Jan 22, 2013, 3:00:52 PM1/22/13
to android-...@googlegroups.com
On Monday, January 21, 2013 at 10:45 EST,
Geofuzzy <goga...@gmail.com> wrote:

> Google really needs to fix this in the build/source instructions
> This can be a major pain for newbies just trying to build direct
> from the website.

(Guessing that this is what "Geofuzzy" wanted to convey but got the
quoting wrong.)

The instructions at http://source.android.com/source/initializing.html
do link to what looks like Oracle's main Java page, from which the
download page for the JDK is just one click away.

--
Magnus Bäck
ba...@google.com
Reply all
Reply to author
Forward
0 new messages