java - 我尝试在java中运行我的程序并发现这个错误

标签 java

这个警告是什么意思?我编译了我的 java 程序,并在 UI 中发现了此警告,它是否必须处理 JVM。

Some code changes cannot be hot swapped into a running virtual machine, such as changing method names or introducing errors into running code.

The current target virtual machine from launch was unable to replace the running code with the code in the workspace. It is safe to continue running the application, but you may notice discrepancies when debugging this application.

Reason:
Hot code replace failed - Scheme change not implemented.

最佳答案

这意味着您需要重新启动您的应用程序;热代码替换(您对代码的更改)失败。使用 Java Platform Debugger Architecture 运行代码无法进行某些更改(您的消息指出了两种可能的此类更改,更改方法名称在运行代码中引入错误)。

关于java - 我尝试在java中运行我的程序并发现这个错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32937180/

相关文章:

java - JAX-RS:如何扩展应用程序类来扫描包?

java - 使用 DOM 解析器对 XML 中的节点进行排序

java - Spring JDBC - 批量删除和插入

java - 为什么我不能调试 Proxy.newProxyInstance 方法?

java - 在 Android 上使用 AES 加密文件

java - android服务以特定的时间间隔连续执行任务

java - 在 X1 y1 X2 y2 形式的 10,000 个点的文件中,如何检测至少 4 个形成正方形的点? java

java - Bnd 具有重复版本的导入包

java - 使用 <a href> 链接到 servlet

java - 如何将天数添加到字符串数据类型的 jtextfield 中给定的日期