This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 30th, when you will be able to use this site as normal.

    Forum Stats

  • 3,889,852 Users
  • 2,269,775 Discussions
  • 7,916,823 Comments

Discussions

getting the error message "Unrecognized VM option 'MaxPermSize=512m'"

User_NXTW8
User_NXTW8 Member Posts: 1 Green Ribbon

Hi ,

When trying to build my application using JDK17 with gradle 7.3.3 tool getting the below error message.

Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details


FAILURE: Build failed with an exception.


* What went wrong:

Unable to start the daemon process.

This problem might be caused by incorrect configuration of the daemon.

For example, an unrecognized jvm option is used.

Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/7.3.3/userguide/gradle_daemon.html

Process command line: C:\Program Files\Eclipse Adoptium\jdk-17\bin\java.exe -XX:MaxPermSize=512m --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx2024m -Dfile.encoding=windows-1252 -Duser.country=US -Duser.language=en -Duser.variant -cp C:\gradle\gradle-7.3.3\lib\gradle-launcher-7.3.3.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.3.3

Please read the following process output to find out more:

-----------------------

Unrecognized VM option 'MaxPermSize=512m'

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.



* Try:

> Run with --stacktrace option to get the stack trace.

> Run with --info or --debug option to get more log output.

> Run with --scan to get full insights.


* Get more help at https://help.gradle.org


Could you please help me on this?

Regards

Rama