请教各位大佬 关于NetBeans17绘制gui运行影响性能报错的问题

大仙哥哥 2023-04-09 10:49:52

大佬们

用NetBeans17画了一个gui

运行时会提示

[engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation.
The guest application code will therefore be executed in interpreted mode only.
Execution only in interpreted mode will strongly impact the guest application performance.
For more information on using GraalVM see https://www.graalvm.org/java/quickstart/.
To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property.
有人遇到过相似问题吗?

如何处理的?

...全文
297 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
1人已打赏

我没有用过,但是帮你gpt了一下
这个错误通常是由于在使用GraalVM时没有正确配置GraalVM的编译器选项导致的。在使用GraalVM时,需要在Java代码中添加以下选项来启用GraalVM的编译器:

java
--engine.WarnInterpreterOnly=false
或者使用以下系统属性:

bash
-Dpolyglot.engine.WarnInterpreterOnly=false
如果您已经添加了这些选项,但仍然遇到了错误,请确保在运行Java代码时使用了正确的GraalVM版本和配置。

大仙哥哥 2023-04-12
  • 举报
回复 1
@会洗碗的CV工程师 添加engine.WarnInterpreterOnly=false后没有警告了。。就是不知道还影响不影响性能。。谢谢大佬

534

社区成员

发帖
与我相关
我的任务
社区描述
Java上山人社区社区,旨在主要提高java和其他编程有关的优质内容的内容和帮助,希望打造共同学习的社区,欢迎加入。
pythonjava其他 个人社区 广东省·广州市
社区管理员
  • 会洗碗的CV工程师
  • Coder个人博客
  • 安 度 因
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧