Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Problem with JAVA_HOME environment variable

 If building the LM-X SDK under Java fails, your JAVA_HOME environment variable variable is set to the JRE rather than the JDK, or it is set to a JDK that is not officially provided by Oracle.
If JAVA_HOME is not set properly, an appropriate warning message will be printed out while building , your LM-X , and LM-X SDK will be built without Java programming language support. In such cases, when you build the LM-X SDK, you will see an error similar to the following:

 

In file included from lmxjava.c:19:0:
lmxjava.h:2:17: fatal error: jni.h: No such file or directory
 #include <jni.h>
                 ^
compilation terminated.
makefile:28: recipe for target 'all' failed

To fix this problem, make sure your environment variable is set to the path of version 1.6 or newer of the JDK.