忿忿的泥巴坨 发表于 2024-6-15 02:58:16

Java HotSpot(TM) 64-Bit Server VM warning_ Sharing is only supported f

今天在学习freemarker静态化页面的时间遇到了这个错误:
Java HotSpot™ 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
https://img-blog.csdnimg.cn/img_convert/3b4f2c980862f283158bddf6bb9e4560.png
最终我找到相识决办法
办理办法原帖:https://stackoverflow.com/questions/65613084/java-hotspottm-64-bit-server-vm-warning-sharing-is-only-supported-for-boot-lo
您只需在代码编辑器设置的 VM 选项中包含 -Xshare:off 即可,也就是运行/调试设置 -> 编辑设置模板 -> 添加虚拟机选项 -Xshare:off
1.
https://img-blog.csdnimg.cn/img_convert/c3802dee753c396a32459306efde2e2f.png
2.
勾上Add VM options,点击apply
https://img-blog.csdnimg.cn/img_convert/7df453a113087bebef2789484598c96e.png
3.在后面填上 -Xshare:off
https://img-blog.csdnimg.cn/img_convert/5cb3c3431c12d8c8249575523f7fedbd.png
4.再次运行
https://img-blog.csdnimg.cn/img_convert/81503225acf801f653f89dc92e57854e.png
就办理了
❤️❤️❤️❤️❤️❤️

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: Java HotSpot(TM) 64-Bit Server VM warning_ Sharing is only supported f