Discussion:
Android make can't find installed JDK?
jackthehack
2008-10-24 16:47:48 UTC
Permalink
Having an issue trying to run the Make file; I get the following error
message:

make: *** No rule to make target `Please-install-JDK-5.0,-update-12-or-
higher,-which-you-can-download-from-java.sun.com', needed by `out/
target/common/docs/framework-timestamp'. Stop.

I have the Sun jdk1.6.0_10 installed and it's directory added to my
path:

***@jseeley-desktop:~$ $PATH
bash: /home/jseeley/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/
bin:/sbin:/bin:/usr/games:/home/jseeley/AndroidSDK/android-sdk-
linux_x86-1.0_r1/tools:/home/jseeley/jdk1.6.0_10

Tried the suggested "$ export ANDROID_JAVA_HOME=$JAVA_HOME" from the
Android site, but still get the error?
Jack!
2008-10-24 17:56:17 UTC
Permalink
Figured out the issue:

First you have to add the following to your ~/.bashrc file:

export JAVA_HOME='/home/<user>/Desktop/JDK6.32'
PATH=.:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH

THEN prior to running the make, run the:

$ export ANDROID_JAVA_HOME=$JAVA_HOME

Now to go through the make errors...

Jack!
Post by jackthehack
Having an issue trying to run the Make file; I get the following error
make: *** No rule to make target `Please-install-JDK-5.0,-update-12-or-
higher,-which-you-can-download-from-java.sun.com', needed by `out/
target/common/docs/framework-timestamp'. Stop.
I have the Sun jdk1.6.0_10 installed and it's directory added to my
bash: /home/jseeley/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/
bin:/sbin:/bin:/usr/games:/home/jseeley/AndroidSDK/android-sdk-
linux_x86-1.0_r1/tools:/home/jseeley/jdk1.6.0_10
Tried the suggested "$ export ANDROID_JAVA_HOME=$JAVA_HOME" from the
Android site, but still get the error?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Android Internals" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to android-internals+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/android-internals?hl=en
-~----------~----~----~----~------~----~------~--~---
DZ
2008-10-28 07:56:54 UTC
Permalink
I have the same problem but that didn't work for me, even java_home
was assigned to what I believe is the proper path to the jvm. I am
currently using openjdk as my deault jvm but I also have sun's java 6
also. anyone have any ideas?
Post by Jack!
export JAVA_HOME='/home/<user>/Desktop/JDK6.32'
PATH=.:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
$ export ANDROID_JAVA_HOME=$JAVA_HOME
Now to go through the make errors...
Jack!
Post by jackthehack
Having an issue trying to run the Make file; I get the following error
make: *** No rule to make target `Please-install-JDK-5.0,-update-12-or-
higher,-which-you-can-download-from-java.sun.com', needed by `out/
target/common/docs/framework-timestamp'.  Stop.
I have the Sun  jdk1.6.0_10 installed and it's directory added to my
bash: /home/jseeley/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/
bin:/sbin:/bin:/usr/games:/home/jseeley/AndroidSDK/android-sdk-
linux_x86-1.0_r1/tools:/home/jseeley/jdk1.6.0_10
Tried the suggested "$ export ANDROID_JAVA_HOME=$JAVA_HOME" from the
Android site, but still get the error?
Loading...