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

Support for JDK 9+. #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Support for JDK 9+. #83

wants to merge 1 commit into from

Conversation

pawel-dabro
Copy link

This solves #42 by adding minimal support for JDK 9 and later versions.
Issues addressed are:

  • lack of tools.jar since JDK 9 (replaced by adding jdk.attach module)
  • lack of javah since JDK 10 (now handled by javac, so no longer required)

message("Java development tools found.")
else()
message(FATAL_ERROR "Java development tools not found.")
endif()
include(UseJava)

set(CMAKE_JAVA_INCLUDE_PATH ${JAVA_INCLUDE_PATH}/../lib/tools.jar)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still needed then?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, if running Java 8 or earlier. Does not hurt with newer, just references a non-existing file.

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

Successfully merging this pull request may close these issues.

2 participants