启动一个Java Standalone程序时报错

解决办法
从启动脚本中把-XX:MaxPermSize=256m参数删掉。

解释
根据官方文档Java命令行参数PermSize和MaxPermSize已经被移除和忽略。如果在命令行中使用,将会显示相应的警告。
The command line flags PermSize and MaxPermSize have been removed and are ignored. If used on the command line a warning will be emitted for each.

Java HotSpot™ Server VM warning: ignoring option PermSize=32m; support
was removed in 8.0
Java HotSpot™ Server VM warning: ignoring option MaxPermSize=128m; support
was removed in 8.0

猜你喜欢

转载自blog.csdn.net/weixin_43214644/article/details/114926879
今日推荐