简体   繁体   中英

Error: Could not create the Java Virtual Machine

I am tried to run ant Project but getting below error

Unrecognized option: -classic Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Press any key to continue . . .

run.bat contain below setting

set JAVA_OPTS=%JAVA_OPTS% -Xms3072m -Xmx3072m -Djava.util.logging.config.file=%JBOSS_HOME%\server\all\conf\logging.properties

set JAVA_OPTS=%JAVA_OPTS% -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -XX:MaxPermSize=2048M


set JAVA_OPTS=-classic -Xdebug -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%

System configuration:

  • OS - Window 7
  • Ram - 8gb

The -classic option in your JAVA_OPTS variable was removed in Java 1.4. The option was used in Java 1.3 to invoke the Java 1.2 classic VM.

So if you're using a recent version of Java, you need to remove the option from your JAVA_OPTS variable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM