1

I have Install JDK 8 and wildfly-10.0.0 and when I try to start stat server using following command via terminal and getting following error.

sudo /opt/wildfly/bin/./launch.sh

Error

Starting Wildfly in standalone mode.
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /opt/wildfly

  JAVA: java

  JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

=========================================================================

Unrecognized VM option 'MetaspaceSize=96M'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
  • Somebody has been down warded this question. kindly mentioned the reason. – Chaminda Bandara Dec 21 '16 at 5:47
2
JAVA: java
...
Unrecognized VM option 'MetaspaceSize=96M'

Your (default) java version does not recognise the JDK 8 specific option MetaspaceSize and borks before tripping over the MaxMetaspaceSize option it also won't recognize.

You might have different JDK's installed with the default pointing to a JDK 6 or 7 and should try setting an explicit path to the correct java binary for your JDK 8 install.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.