一、问题描述
JDK11版本下启动seata之后,报错如下,管理员启动也不行
E:\springcloud-alibaba-seata\seata-server-1.2.0\seata\bin>seata-server.bat
[0.007s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:E:\springcloud-alibaba-seata\seata-server-1.2.0\seata\bin\\../logs/seata_gc.log instead.
[0.008s][error ][logging] Error opening log file 'E:\springcloud-alibaba-seata\seata-server-1.2.0\seata\bin\\../logs/seata_gc.log': No such file or directory
[0.008s][error ][logging] Initialization of output 'file=E:\springcloud-alibaba-seata\seata-server-1.2.0\seata\bin\\../logs/seata_gc.log' using options '(null)' failed.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
二、问题解决
参考:https://github.com/seata/seata/issues/3378
修改bat或者sh文件即可
然后启动nacos、seata测试