Skip to content

Commit

Permalink
Fix issue with unrecognized JVM option while running with Java 11 (#1…
Browse files Browse the repository at this point in the history
…3648)

Motivation:

While running with Java 11, hit the following issue
```
# Created at 2023-10-03T16:18:21.784
JVMJ9VM007E Command-line option unrecognised: -D

# Created at 2023-10-03T16:18:21.786
Error: Could not create the Java Virtual Machine.

# Created at 2023-10-03T16:18:21.786
Error: A fatal exception has occurred. Program will exit.
```

Modification:

Update pom.xml to change new JVM option to default to -D_

Result:

Runs now don't hit this issue on JDKs other than 21
  • Loading branch information
isaacrivriv authored and normanmaurer committed Oct 4, 2023
1 parent 7c043c6 commit 00eca38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@
-dsa -da -ea:io.netty5...
-XX:+HeapDumpOnOutOfMemoryError
</argLine.common>
<argLine.jni>-D</argLine.jni>
<argLine.jni>-D_</argLine.jni>
<!-- Default to ALPN. See forcenpn profile to force NPN -->
<argLine.alpnAgent>-javaagent:${jetty.alpnAgent.path}=${jetty.alpnAgent.option}</argLine.alpnAgent>
<argLine.leak>-D_</argLine.leak> <!-- Overridden when 'leak' profile is active -->
Expand Down

0 comments on commit 00eca38

Please sign in to comment.