views:

32

answers:

1

Hi,

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.

+2  A: 

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.

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.

Stephen C
Thread.exit() is no where defined in Thread class.Please send me class if you have that onw
JavaUser
Download a Java 6.0 JDK, install it and look in the src.zip file. I cannot send you the copy I'm looking at right now (jdk1.6.0_16) because it is not the GPL'ed version.
Stephen C