Actually if you simply copy/paste your error message, I believe you made a case-sensitive type, try:
FIND_PACKAGE(Java) instead of FIND_PACKAGE(JAVA) :) 2cts On Wed, Aug 13, 2008 at 1:49 PM, Mathieu Malaterre <[EMAIL PROTECTED]> wrote: > It simply means that java (javac ?) was not found on the linux system. > > if you ccmake and/or make edit_cache you'll see that some JAVA > required inputs are missing. > > HTH > > On Wed, Aug 13, 2008 at 2:23 AM, Andy Somogyi <[EMAIL PROTECTED]> wrote: >> Hello >> >> I'm working on a c++ / JNI application which needs to run on >> Mac/Linux/Windows. >> >> It builds fine on Mac and Windows, however on Linux (Ubuntu 8.04, cmake >> version 2.4 patch 7) I get the following error: >> >> CMake Error: JAVA_DIR is not set. It must be set to the directory >> containing JAVAConfig.cmake in order to use JAVA. >> >> The strange thing is that, it compiles fine on Mac using cmake version 2.4 >> patch 8. I searched the entire file system on the Mac for a JAVAConfig.cmake >> and it is not there, but it compiles fine. On Linux I'm using Sun JDK 6. >> >> Any ideas would be greatly appreciated. >> >> >> _______________________________________________ >> CMake mailing list >> [email protected] >> http://www.cmake.org/mailman/listinfo/cmake >> > > > > -- > Mathieu > -- Mathieu _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
