Could you please provide more information about your environment? Are
you using Ubuntu? If so, what version and architecture?
Did you install the jdk using a different method or did you use the
steps provided at:
http://source.android.com/source/initializing.html
~cco3
> --
> 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
>
On Wed, Nov 16, 2011 at 12:14 PM, Elliott Polk <tak...@gmail.com> wrote:
> I've had issues in the past trying to build with the openJDK. The sunJDK
> tends to perform better overall. Not quite sure why...
>
JBQ
--
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.
On my gentoo system, I use a patch written by a friend,
diff --git a/core/config.mk b/core/config.mk
index 41e60ea..1f949cb 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -264,10 +264,10 @@ ifeq ($(HOST_OS),darwin)
HOST_JDK_TOOLS_JAR :=
else
HOST_JDK_TOOLS_JAR:= $(shell $(BUILD_SYSTEM)/find-jdk-tools-jar.sh)
-ifeq ($(wildcard $(HOST_JDK_TOOLS_JAR)),)
-$(error Error: could not find jdk tools.jar, please install JDK6, \
- which you can download from java.sun.com)
-endif
+#ifeq ($(wildcard $(HOST_JDK_TOOLS_JAR)),)
+#$(error Error: could not find jdk tools.jar, please install JDK6, \
+# which you can download from java.sun.com)
+#endif
endif
# Is the host JDK 64-bit version?
Best Regards,
Steev
Your version is: java version "1.6.0_20".
The correct version is: Java SE 1.6.
-------------------
You need to switch to the recommended java-6-sun
Would be nice to add the following tip to the "Initializing
Environment" doc, as well.
$ sudo update-java-alternatives -s java-6-sun
-Jey
PS: I am on Ubuntu 10.04
On Wed, Nov 16, 2011 at 9:14 AM, Elliott Polk <tak...@gmail.com> wrote:
> I've had issues in the past trying to build with the openJDK. The sunJDK
> tends to perform better overall. Not quite sure why...
>
Downloading the JRE from java.sun.com and setting JAVA_HOME to point
at the root of it worked for me as well.
If you can figure out how to get a version that works from portage or
directly from sun, that's great. Otherwise, you will really have to
install java from the repository suggested in the docs (which may mean
getting an Ubuntu install).
~cco3
I just tried to run lunch full-userdebug and got the same problem.
But I solved it by this way:
I opened the file "build/core/find-jdk-tools-jar.sh" and saw that it
use ANDROID_JAVA_HOME variable. But in my system there are no such
variable and other code didn't work in this script.
So I checked and found that if I replace in this file
ANDROID_JAVA_HOME with just JAVA_HOME it works.
before:
if [ "x$ANDROID_JAVA_HOME" != x ] && [ -e "$ANDROID_JAVA_HOME/lib/
tools.jar" ] ; then
echo $ANDROID_JAVA_HOME/lib/tools.jar
after:
if [ "x$JAVA_HOME" != x ] && [ -e "$JAVA_HOME/lib/tools.jar" ] ; then
echo $JAVA_HOME/lib/tools.jar
If somebody knows, say me if this is save because I'm not sure.
Thanks.