IDEA碰到:VM warning: Sharing is only supported for boot…-Java专区论坛-技术-SpringForAll社区

IDEA碰到:VM warning: Sharing is only supported for boot…

做个日常记录,今天调试一个使用Flux和R2DBC的应用,发现使用IDEA启动的时候报了下面的红色警告:

 
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended

处理这个警告的方法有两个:

第一个方法:添加VM参数-Xshare:off

如何配置vm参数,之前在Java新特性中的Preview功能如何运行和调试open in new window一文中提过,具体参考下面的图,记得修改参数:

图片[1]-IDEA碰到:VM warning: Sharing is only supported for boot…-Java专区论坛-技术-SpringForAll社区

第二个方法:在IDEA的Setting中做如下配置

图片[2]-IDEA碰到:VM warning: Sharing is only supported for boot…-Java专区论坛-技术-SpringForAll社区

参考资料

  • https://stackoverflow.com/questions/54205486/how-to-avoid-sharing-is-only-supported-for-boot-loader-classes-because-bootstra

来源:https://www.didispace.com/article/richang/20231014-VM_warning_Sharing.html

请登录后发表评论

    没有回复内容