Android make can't find installed JDK?

499 views
Skip to first unread message

jackthehack

unread,
Oct 24, 2008, 12:47:48 PM10/24/08
to Android Internals
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@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!

unread,
Oct 24, 2008, 1:56:17 PM10/24/08
to Android Internals
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!

DZ

unread,
Oct 28, 2008, 3:56:54 AM10/28/08
to Android Internals
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?

On Oct 24, 1:56 pm, Jack! <reps....@gmail.com> wrote:
> 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!
>
Reply all
Reply to author
Forward
0 new messages