nacos 2.4.1在jdk11下无法启动并报错

icomxhvb  于 4个月前  发布在  Nacos
关注(0)|答案(2)|浏览(142)

My env :
Windows 10

when i try to start nacos:

run command line :

sh startup.sh -m standalone

startup.cmd still not work either.

Log file (log/start.out):
C:\Program Files\Java\jdk-11/bin/java -Djava.ext.dirs=C:\Program Files\Java\jdk-11/jre/lib/ext:C:\Program Files\Java\jdk-11/lib/ext -server -Xms2g -Xmx2g -Xmn1g -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/d/Download/Nacos/nacos/logs/java_heapdump.hprof -XX:-UseLargePages -Dnacos.member.list= -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8 -Xloggc:/d/Download/Nacos/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dloader.path=/d/Download/Nacos/nacos/plugins,/d/Download/Nacos/nacos/plugins/health,/d/Download/Nacos/nacos/plugins/cmdb,/d/Download/Nacos/nacos/plugins/selector -Dnacos.home=/d/Download/Nacos/nacos -jar /d/Download/Nacos/nacos/target/nacos-server.jar --spring.config.additional-location=file:/d/Download/Nacos/nacos/conf/ --logging.config=/d/Download/Nacos/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288
nohup: ignoring input
-Djava.ext.dirs=C:\Program Files\Java\jdk-11/jre/lib/ext:C:\Program Files\Java\jdk-11/lib/ext is not supported. Use -classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Already seen #6609 and #12549 , still can't fix this.

x0fgdtte

x0fgdtte1#

use sh command in windows os?

Can you try with startup.cmd ?

In CI env of ubuntu and my env of macos, jdk11 can work well.

enyaitl3

enyaitl32#

no,windows os still cant work by two ways above.

相关问题