跳至主要內容

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

程序猿DD原创JavaJava小于 1 分钟

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

做个日常记录,今天调试一个使用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一文中提过,具体参考下面的图,记得修改参数:

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

参考资料

  • https://stackoverflow.com/questions/54205486/how-to-avoid-sharing-is-only-supported-for-boot-loader-classes-because-bootstra
上次编辑于:
贡献者: 程序猿DD