AlienFxLite icon indicating copy to clipboard operation
AlienFxLite copied to clipboard

Java 9 internal conflict

Open aczepod opened this issue 6 years ago • 5 comments

-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) CMake Warning at /usr/share/cmake-3.5/Modules/FindJava.cmake:158 (message): regex not supported: openjdk version "9-internal"

OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)

OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode). Please report Call Stack (most recent call first): CMakeLists.txt:64 (FIND_PACKAGE)

CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find Java (missing: Java_JAVAC_EXECUTABLE Java_JAVAH_EXECUTABLE Java_JAVADOC_EXECUTABLE Development) (found version "..") Call Stack (most recent call first): /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.5/Modules/FindJava.cmake:244 (find_package_handle_standard_args) CMakeLists.txt:64 (FIND_PACKAGE)

aczepod avatar Jul 18 '17 07:07 aczepod

Same problem here.. did u solve it?

randomxsk8 avatar Oct 19 '17 14:10 randomxsk8

Could you provide more information on your systems? Linux distribution, CMake version, Java version (JDK/JRE) etc.

bchretien avatar Oct 19 '17 19:10 bchretien

Solved. I installed last jdk9 from oracle instead openjdk and it works. I got linux mint and i follow this guide for installing oracle jdk.. i hope that could be helpfull: https://community.linuxmint.com/tutorial/view/1372

randomxsk8 avatar Oct 19 '17 20:10 randomxsk8

The Java detection on CMake's side may be improvable, but it is difficult to do that without the same system, and without breaking it for other people. The whole search can be improved by providing JAVA_HOME explicitly.

bchretien avatar Oct 20 '17 17:10 bchretien

I am running into this same issue with Java detection. Sorry bit of a noob here, this is the error message

CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message): The package name passed to find_package_handle_standard_args (JNI) does not match the name of the calling package (JNI2). This can lead to problems in calling code that expects find_package result variables (e.g., _FOUND) to follow a certain pattern. Call Stack (most recent call first): CMakeModules/FindJNI2.cmake:279 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:26 (FIND_PACKAGE) This warning is for project developers. Use -Wno-dev to suppress it.

-- Found JNI: /usr/lib/jvm/java-8-openjdk/jre/lib/amd64/libjawt.so CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message): Could NOT find Java (missing: Java_JAR_EXECUTABLE Java_JAVADOC_EXECUTABLE Development) (found version "14.0.2") Call Stack (most recent call first): /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.18/Modules/FindJava.cmake:319 (find_package_handle_standard_args) CMakeLists.txt:64 (FIND_PACKAGE)

Is there a reliable way to get around this? Running 5.8.10-arch -1

taconomix avatar Oct 05 '20 01:10 taconomix