I use OpenJDK 17 with Maven Wrapper 3.8.2 from Spring Initializr (Maven project, JAR packaging, Java 17, Spring Boot 2.6.0). No additional dependencies.
user@DESKTOP-U2OU5HG MINGW64 /c/Projects/my-project (master) $ java -version openjdk version "17" 2021-09-14 OpenJDK Runtime Environment (build 17+35-2724) OpenJDK 64-Bit Server VM (build 17+35-2724, mixed mode, sharing)
Upon running any of ./mvnw.cmd -version
or ./mvnw.cmd clean install
, I always get the following message:
Unrecognized VM option 'MaxPermSize=512m' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Switching to OpenJDK 16.0.2 resolves the issue, however, I need to work with Java 17.
How to get it run? There is nowhere MaxPermSize=512m
set.
.mvn/jvm.config
. – FinzerMaxPermSize=512m
is removed. – Albatross.mvn/jvm.config
file. Onlywrapper
folder. – Unbalance