I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit a1949bf6 authored by zzz's avatar zzz
Browse files

Build: Suppress JNI warnings from Java 24 for CLI and i2psnark-standalone

and add note to wrapper.config on how to do it there for normal runtime
parent f7d28937
No related branches found
No related tags found
No related merge requests found
Pipeline #2058 passed
...@@ -261,6 +261,11 @@ ...@@ -261,6 +261,11 @@
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />
<attribute name="X-Compile-Source-JDK" value="${javac.version}" /> <attribute name="X-Compile-Source-JDK" value="${javac.version}" />
<attribute name="X-Compile-Target-JDK" value="${javac.version}" /> <attribute name="X-Compile-Target-JDK" value="${javac.version}" />
<!--
Suppress JNI warning in JRE 24+, and eventual restriction
See https://openjdk.org/jeps/472
-->
<attribute name="Enable-Native-Access" value="ALL-UNNAMED" />
<!-- this is so Jetty will report its version correctly --> <!-- this is so Jetty will report its version correctly -->
<section name="org/eclipse/jetty/server/" > <section name="org/eclipse/jetty/server/" >
<attribute name="Implementation-Vendor" value="Eclipse.org - Jetty" /> <attribute name="Implementation-Vendor" value="Eclipse.org - Jetty" />
......
...@@ -129,6 +129,13 @@ ...@@ -129,6 +129,13 @@
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />
<attribute name="X-Compile-Source-JDK" value="${javac.version}" /> <attribute name="X-Compile-Source-JDK" value="${javac.version}" />
<attribute name="X-Compile-Target-JDK" value="${javac.version}" /> <attribute name="X-Compile-Target-JDK" value="${javac.version}" />
<!--
Suppress JNI warning in JRE 24+, and eventual restriction
See https://openjdk.org/jeps/472
This only works for CLI with this as the named -jar argument;
for normal runtime it must be suppressed in wrapper.config
-->
<attribute name="Enable-Native-Access" value="ALL-UNNAMED" />
</manifest> </manifest>
</jar> </jar>
</target> </target>
......
...@@ -77,6 +77,13 @@ wrapper.java.additional.1=-DloggerFilenameOverride=logs/log-router-@.txt ...@@ -77,6 +77,13 @@ wrapper.java.additional.1=-DloggerFilenameOverride=logs/log-router-@.txt
wrapper.java.additional.2=-Di2p.dir.base="$INSTALL_PATH" wrapper.java.additional.2=-Di2p.dir.base="$INSTALL_PATH"
wrapper.java.additional.2.stripquotes=TRUE wrapper.java.additional.2.stripquotes=TRUE
# Suppress JNI warning in JRE 24+, and eventual restriction
# See https://openjdk.org/jeps/472
# This will fail on JRE 11 or lower, works on JRE 17+
#wrapper.java.additional.3=--enable-native-access=ALL-UNNAMED
# Alternative that _may_ work on all JRE versions:
#set.JDK_JAVA_OPTIONS=--enable-native-access=ALL-UNNAMED
# Prevent the JVM from exporting stats (and thereby causing hundreds of # Prevent the JVM from exporting stats (and thereby causing hundreds of
# ms long pauses during GC) # ms long pauses during GC)
# http://www.evanjones.ca/jvm-mmap-pause.html # http://www.evanjones.ca/jvm-mmap-pause.html
......
...@@ -99,6 +99,13 @@ ...@@ -99,6 +99,13 @@
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.tr}" />
<attribute name="X-Compile-Source-JDK" value="${javac.version}" /> <attribute name="X-Compile-Source-JDK" value="${javac.version}" />
<attribute name="X-Compile-Target-JDK" value="${javac.version}" /> <attribute name="X-Compile-Target-JDK" value="${javac.version}" />
<!--
Suppress JNI warning in JRE 24+, and eventual restriction
See https://openjdk.org/jeps/472
This only works for CLI with this as the named -jar argument;
for normal runtime it must be suppressed in wrapper.config
-->
<attribute name="Enable-Native-Access" value="ALL-UNNAMED" />
</manifest> </manifest>
</jar> </jar>
</target> </target>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment