[ 
https://issues.apache.org/jira/browse/DAEMON-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17949674#comment-17949674
 ] 

VVD commented on DAEMON-471:
----------------------------

Added in this commit: 
[https://github.com/openjdk/jdk17u/commit/a223189b069a7cfe49511d49b5b09e7107cb3cab]

You can check "Blame": 
[https://github.com/openjdk/jdk17u/blame/af0de21b9bac2b593e2b50703e2995cd7a9cfb42/src/java.base/share/native/libjli/java.c#L600]

I tested all installed JDKs on my host:
{code:bash}
$ for JDK in /usr/local/openjdk*; do echo ${JDK}; ${JDK}/bin/java 
--enable-native-access=ALL-UNNAMED --version; echo; done
/usr/local/openjdk11
Unrecognized option: --enable-native-access=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

/usr/local/openjdk17
openjdk 17.0.15 2025-04-15
OpenJDK Runtime Environment (build 17.0.15+6-1)
OpenJDK 64-Bit Server VM (build 17.0.15+6-1, mixed mode, sharing)

/usr/local/openjdk18
openjdk 18.0.2 2022-07-19
OpenJDK Runtime Environment (build 18.0.2+9-1)
OpenJDK 64-Bit Server VM (build 18.0.2+9-1, mixed mode, sharing)

/usr/local/openjdk19
openjdk 19.0.2 2023-01-17
OpenJDK Runtime Environment (build 19.0.2+7-1)
OpenJDK 64-Bit Server VM (build 19.0.2+7-1, mixed mode, sharing)

/usr/local/openjdk20
openjdk 20.0.2 2023-07-18
OpenJDK Runtime Environment (build 20.0.2+9-1)
OpenJDK 64-Bit Server VM (build 20.0.2+9-1, mixed mode, sharing)

/usr/local/openjdk21
openjdk 21.0.7 2025-04-15
OpenJDK Runtime Environment (build 21.0.7+6-1)
OpenJDK 64-Bit Server VM (build 21.0.7+6-1, mixed mode, sharing)

/usr/local/openjdk8
Unrecognized option: --enable-native-access=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
{code}

> Add support for --enable-native-access Java startup option in jsvc
> ------------------------------------------------------------------
>
>                 Key: DAEMON-471
>                 URL: https://issues.apache.org/jira/browse/DAEMON-471
>             Project: Commons Daemon
>          Issue Type: New Feature
>          Components: Jsvc
>    Affects Versions: 1.4.1
>            Reporter: VVD
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: 1.4.2
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to