checking for a JDK home directory... configure: error: "A JDK home directory could not be found. "
Albretch Mueller
lbrtchx at gmail.com
Sun Dec 17 23:48:22 UTC 2017
OK, I followed your instructions if not exactly pretty well. I
started, as you suggested, by installing the latest jdk:
$ java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-1~bpo8+1-b11)
OpenJDK Server VM (build 25.131-b11, mixed mode)
but I icedtea is not taking the JDK in. While trying to configure it:
_LOG="icedtea-web-1.6.2_install_$(date +%Y%m%d%H%M%S).log"
time (./configure
--with-jdk-home="/usr/lib/jvm/java-8-openjdk-i386/jre/bin/java"
--prefix="/home/debian/inst/sw/jnlp/icedtea") >> "${_LOG}" 2>&1
I get the error:
checking for a JDK home directory... configure: error: "A JDK home
directory could not be found.
/usr/lib/jvm/java-8-openjdk-i386/jre/bin/java"
// __
$ pwd
/usr/lib/jvm/java-8-openjdk-i386/jre/bin
$ ls -l
total 184
-rwxr-xr-x 1 root root 5648 May 15 2017 java
-rwxr-xr-x 1 root root 5664 May 15 2017 jjs
-rwxr-xr-x 1 root root 5664 May 15 2017 keytool
-rwxr-xr-x 1 root root 5676 May 15 2017 orbd
-rwxr-xr-x 1 root root 5664 May 15 2017 pack200
-rwxr-xr-x 1 root root 5664 May 15 2017 policytool
-rwxr-xr-x 1 root root 5664 May 15 2017 rmid
-rwxr-xr-x 1 root root 5664 May 15 2017 rmiregistry
-rwxr-xr-x 1 root root 5664 May 15 2017 servertool
-rwxr-xr-x 1 root root 5676 May 15 2017 tnameserv
-rwxr-xr-x 1 root root 102940 May 15 2017 unpack200
$ which java
/usr/bin/java
$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 Sep 26 18:21 /usr/bin/java -> /etc/alternatives/java
$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 45 Dec 17 18:16 /etc/alternatives/java ->
/usr/lib/jvm/java-8-openjdk-i386/jre/bin/java
~
So what is it I am not doing right now
lbrtchx
On 12/14/17, Jiri Vanek <jvanek at redhat.com> wrote:
> On 12/14/2017 03:51 PM, Albretch Mueller wrote:
>> after downloading the checking the hash signatures of icedtea web I
>> got a "JDK home not found" kind of error message:
>>
>> ./configure
> ...
>> checking for a JDK home directory... configure: error: "A JDK home
>> directory could not be found. "
>> ~
>> I found on the askubuntu site and explanation about why does it happen:
>>
>>
>> https://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-jdk-6-7-8-or-jre/173951
>>
>> but when I try their suggestions I find not reason for that error to
>> bomb the configuration since there is only one java installation:
>>
>> # uname -a
>> Linux IBMThnkPdT60 3.16.0-4-686-pae #1 SMP Debian 3.16.36-1+deb8u1
>> (2016-09-03) i686 GNU/Linux
>>
>> $ which java
>> /usr/bin/java
>>
>> $ java -version
>> java version "1.7.0_111"
>> OpenJDK Runtime Environment (IcedTea 2.6.7) (7u111-2.6.7-1~deb8u1)
>> OpenJDK Client VM (build 24.111-b01, mixed mode)
>>
>> # update-alternatives --config java
>> There is only one alternative in link group java (providing
>> /usr/bin/java): /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java
>> Nothing to configure.
>>
>> How can I troubleshoot that problem?
>
>
> You did nto wrote version of ITW. Since 1.6 jdk 7 is no longer suported and
> you shoudl run jdk8
>
> Still, the configure message is about founding jdk. The paths where jdk is
> searched for are
> hardcoded. If you belive you can live with jdk7 you have shown, you can pass
> --with-jdk-home to
> configure script (eg `sh configure
> --with-jdk-home=/usr/lib/jvm/java-7-openjdk-i386/`
>
> HTH, feel free to keep asking!
> J.
>
>
>
> --
> Jiri Vanek
> Senior QE engineer, OpenJDK QE lead, Mgr.
> Red Hat Czech
> jvanek at redhat.com M: +420775390109
>
More information about the distro-pkg-dev
mailing list