Skip to content

Support for JDK 9+.#83

Open
pawel-dabro wants to merge 1 commit intojvm-profiling-tools:masterfrom
codewise:java-9-plus
Open

Support for JDK 9+.#83
pawel-dabro wants to merge 1 commit intojvm-profiling-tools:masterfrom
codewise:java-9-plus

Conversation

@pawel-dabro
Copy link
Copy Markdown

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)

endif()
include(UseJava)

set(CMAKE_JAVA_INCLUDE_PATH ${JAVA_INCLUDE_PATH}/../lib/tools.jar)
Copy link
Copy Markdown
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
Copy Markdown
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