当前位置:   article > 正文

【seata启动报错,mac切换jdk版本】_unrecognized vm option 'cmsparallelremarkenabled'

unrecognized vm option 'cmsparallelremarkenabled' error: could not create th

seata启动报错

Unrecognized VM option 'CMSParallelRemarkEnabled'

Error: Could not create the Java Virtual Machine.

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

出现这个报错证明是环境变量的问题。

1,终端进入bin路径

cd /Users/fengjinjin/tools/seata/seata-server-1.4.2/bin

2,输入 open -t ~/.bash_profile

3,插入jdk 8的home路径,保存,如

export JAVA_8_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home
export JAVA_11_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.12.jdk/Contents/Home
export JAVA_16_HOME=/Library/Java/JavaVirtualMachines/jdk-16.0.2.jdk/Contents/Home

export JAVA_HOME=$JAVA_8_HOME

alias jdk8="export JAVA_HOME=$JAVA_8_HOME"
alias jdk11="export JAVA_HOME=$JAVA_11_HOME"
alias jdk16="export JAVA_HOME=$JAVA_16_HOME"

export PATH=$PATH:$JAVA_HOME/bin:$GRADLE_HOME/bi
 

3,更新 刷新 环境变量 source ~/.bash_profile

(mac 切换环境变量)

4,jdk9

5,查看jdk版本 java -version

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/236396
推荐阅读
  

闽ICP备14008679号