Chirag Soni
Chirag Soni

Reputation: 437

VM error while starting Wildfly (JBoss) server

I have wildfly-10.0.0.Final available with PATH variable set. I am using Ubuntu. Also I have jdk1.7.0_79. I am facing the problem that as when I am trying to start server that is executing standalone.sh then I am getting the error,

Unrecognized VM option 'MetaspaceSize=96M' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

Upvotes: 18

Views: 21944

Answers (3)

You have to put in the standalone.bat file this line set JAVA_HOME=C:\Program Files\Java\jdk-9.0.4, and change the ubication of the JDK installation.

Upvotes: -1

Zeigeist
Zeigeist

Reputation: 4015

Check java -version. If it is not java version "1.8.0_xx", then set the JAVA_HOME environment variable as below and run the command,

bash-4.1$ export JAVA_HOME=LOCATION_TO_JDK1.8.0

Upvotes: 1

Lukasz_Plawny
Lukasz_Plawny

Reputation: 439

Use jdk 1.8 instead of jdk 1.7. MetaspaceSize is a new flag added for Metaspace in jdk 1.8.

Upvotes: 26

Related Questions