Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 9 internal conflict #21

Open
aczepod opened this issue Jul 18, 2017 · 5 comments
Open

Java 9 internal conflict #21

aczepod opened this issue Jul 18, 2017 · 5 comments
Labels

Comments

@aczepod
Copy link

aczepod commented Jul 18, 2017

-- 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)

@randomxsk8
Copy link

Same problem here.. did u solve it?

@bchretien bchretien added the bug label Oct 19, 2017
@bchretien
Copy link
Owner

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

@randomxsk8
Copy link

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

@bchretien
Copy link
Owner

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.

@taconomix
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants