DO NOT switch to precise.
It is not supported "straight out of the box". You can work around it,
but it's not worth the pain if you are already using Ubuntu Lucid
(10.04)

Just go to Oracle (formerly sun) website, and download and install the
sun(oracle) JDK for your machine.

Note:
JDK version-7 is OK, and Open-JDK, which is ubuntu's default is also
sometimes OK - but you would have to disable the "error stop"
directive on
build/core/main.mk
( Search for something:
# Check for the correct version of java
java_version := $(shell java -version 2>&1 | head -n 1 | grep '^java
.*[ "]1\.6[\. "$$]')
)

-Ron



On Wed, May 23, 2012 at 6:56 PM, Alvin Wong <alvinhoc...@gmail.com> wrote:
> Hi,
>
> I believe you shall read this 
> http://source.android.com/source/initializing.html
> for the procedure to install java6.
>
> Good luck,
> Alvin Wong
>
> On Apr 5, 3:07 pm, srinivasan shanmugam <srinivasan....@gmail.com>
> wrote:
>> Dear All,
>>
>> I am facing the below problem while building the android ICS
>>
>> appusony@ubuntu:~/rowboat-android$ make TARGET_PRODUCT=beagleboard
>> OMAPES=5.x
>> /bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/
>> bin/arm-linux-androideabi-gcc: No such file or directory
>> /bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/
>> bin/arm-linux-androideabi-gcc: No such file or directory
>> /bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/
>> bin/arm-linux-androideabi-gcc: No such file or directory
>> /bin/bash: bison: command not found
>> ============================================
>> PLATFORM_VERSION_CODENAME=REL
>> PLATFORM_VERSION=4.0.3
>> TARGET_PRODUCT=beagleboard
>> TARGET_BUILD_VARIANT=eng
>> TARGET_BUILD_TYPE=release
>> TARGET_BUILD_APPS=
>> TARGET_ARCH=arm
>> TARGET_ARCH_VARIANT=armv7-a-neon
>> HOST_ARCH=x86
>> HOST_OS=linux
>> HOST_BUILD_TYPE=release
>> BUILD_ID=IML74K
>> ============================================
>> Checking build tools versions...
>> ************************************************************
>> You are attempting to build with the incorrect version
>> of java.
>>
>> Your version is: java version "1.6.0_20".
>> The correct version is: Java SE 1.6.
>>
>> Please follow the machine setup instructions at
>>    http://source.android.com/source/download.html
>> ************************************************************
>> build/core/main.mk:131: *** stop.  Stop.
>>
>> But when i tried to install Java 6: using the below commands
>>
>> $ sudo add-apt-repository "debhttp://archive.canonical.com/lucid
>> partner"
>> $ sudo apt-get update
>> $ sudo apt-get install sun-java6-jdk
>>
>> I'm getting the below errors
>>
>> appusony@ubuntu:~$ 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
>>
>> I followed the different ways in solving the above error  from net,
>> but i was not able to succeed further
>>
>> Could ne body pls kindly do the needful in resolving the above errors
>>
>> Any help woud be greatly appreciated
>>
>> Advanced thanks,
>> srinivasan....@gmail.com
>
> --
> unsubscribe: android-porting+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-porting

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to