[Android] Building Android Gingerbread-x86 Problem ( can not found thejava.lang.Object class )
I had been published the result of my build the Android Gingerbread-x86 before.
Here, I will post a problem when I build the source code and try to solve it.
When I try to build the Android Gingerbread-x86 in my laptop, I had received the error that is “it can’t found the java.lang.Object class”.
How to solve the problem? Originally, I try to set the JAVA_PATH and ANDROID_JAVA_PATH environment variables for my system, but this is not work.
For this reason, I re-install all java related packages in my Ubuntu, and then, the problem doesn’t occur.
You can install the java related packages and build the Android source by these steps in 64-bit Ubuntu Linux:
http://source.android.com/source/download.html
Java 6 for Gingerbread:
#> sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
#> sudo add-apt-repository “deb-src http://archive.canonical.com/ubuntu lucid partner”
#> sudo apt-get update
#>sudo apt-get install sun-java6-jdk
#>sudo update-java-alternatives -s java-6-sun
#> sudo add-apt-repository “deb-src http://archive.canonical.com/ubuntu lucid partner”
#> sudo apt-get update
#>sudo apt-get install sun-java6-jdk
#>sudo update-java-alternatives -s java-6-sun
Build the Android Source:
#> cd AndroidSourceTree/
#> source build/envsetup.sh
#> lunch
#> source build/envsetup.sh
#> lunch
#> export ANDROID_JAVA_HOME=$JAVA_HOME
#> make
Thanks for review, it was excellent and very informative.
thank you 🙂