[CMake] CMake can't find the JDK?
Rolf Eike Beer
eike at sf-mail.de
Sat Jun 30 05:08:43 EDT 2012
Eli Gottlieb wrote:
> When I run CMake on my project (java bindings for llvm) after upgrading
>
> to Ubuntu 12.04, it returns the following error:
> > eli at eli-netbook:~/Programs/decac/src/org/jllvm/bindings$ cmake .
> >
> > CMake Error at /usr/share/cmake-2.8/Modules/FindJava.cmake:99 (MESSAGE):
> > Error executing java -version
> >
> > Call Stack (most recent call first):
> > CMakeLists.txt:21 (FIND_PACKAGE)
> >
> > -- Configuring incomplete, errors occurred!
>
> When I run `java -version` myself it returns:
> > eli at eli-netbook:~/Programs/decac/src/org/jllvm/bindings$ java -version
> > java version "1.6.0_24"
> > OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3)
> > OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
>
> Any idea what's going on here?
I think this is related to http://cmake.org/Bug/view.php?id=12878
Can you please use the patch from there and check if the error persists?
Eike
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120630/7ed2569d/attachment.pgp>
More information about the CMake
mailing list