赞
踩
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。