jvm - jdk-5 error while building android source code -


I am trying to create a Linux kernel for the Android emulator (eclair edition). I downloaded the Android source code, and "$ repo sync" was also successful. Now for the building, when I try to execute the "$ make" command, I get the following error.

Root @ Ubuntu: ~ / mydroid # make

PLATFORM_VERSION_CODENAME = REL PLATFORM_VERSION = 2.1-Update1 TARGET_PRODUCT = General TARGET_BUILD_VARIANT = TARGET_SIMULATOR = TARGET_BUILD_TYPE = Release TARGET_ARCH = Arm HOST_ARCH = x86 HOST_OS = Linux HOST_BUILD_TYPE = Release

BUILD_ID = Eclair

Checking device versions ...


You can create Java with the wrong version Are trying.

Your version is: / bin / bash: java: command not found. The correct version is: 1.5.

Please follow the machine setup instructions


build / core / main.mk: 111: * . Stop.

I had open- jdk6 and sun-jdk-6, now to build an Android source, it requires sun-jdk-1.5. I have for this Tried to install Sun-jdk-1.5 with the -bin file, but the default JVM has not been initialized for jdk-1.5, and I am not able to do this. I uninstalled OpenJDK-6 but I can not remove Suraj-JDK-6. I have installed Suraj-JDK-6 from Oracle / Download from .bin file.

I am taking the following steps from the link below

Please tell me how can I uninstall jdk-6 and default jvm Can I set the path to sun-jdk-5? Or there is another way to set the default jvm .. please help.

Set up your JDK 1.5 path before the JDK 1.6 will therefore choose 1.5 rather than System 1.6.

Comments