遇到报红提示
// 具体内容 Java HotSpot™64位服务器VM警告:仅支持引导加载程序类的共享,因为已附加引导类路径
Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
寻找到的解决方案有两种
办法1
setting -> Build... -> Debugger -> Async Stack Traces
设置修改后没生效
办法2 (有效)
Run/Debug Configurations -> Edit configuration template (bottom left) -> add VM options -Xshare:off.
// 需在代码编辑器配置的VM选项中包含-Xshare:off
-Xshare:off
报红提示清掉了
好像是因为jdk版本和IDEA的期望不一致导致的(不确定)