Eclipse调试:Thread.exit()行不存在

Eclipse调试:Thread.exit()行不存在

问题描述:

当我尝试在eclipse中调试一个Java文件,最后说Thread.exit()行不存在 - >编辑源路径。什么是这个消息说。在Thread类中没有方法退出。请对此发表评论。

When I try to debug a Java file in eclipse then its finally says "Thread.exit() line not exist"->Edit Source Path . What is this message says.Also there is no method exit in Thread class.Please comment on this.

实际上, Thread中的一个 Thread.exit()方法。这是一种私有的方法,在一个线程实际退出之前被调用做一些保存。

Actually, there is a Thread.exit() method in the Sun implementation of Thread. It is a private method that is called to do some house-keeping before a thread actually exits.

我想你需要修复源路径,因为错误消息提示。确保Eclipse正在使用正在使用的运行时JAR的正确源ZIP文件。

I think you need to fix the source path as the error message suggests. Make sure that Eclipse is using the correct sources ZIP file for the runtime JAR that you are using.