File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Class Path error Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply locked New topic

Class Path error Help

Sid Robin
Ranch Hand

Joined: Nov 24, 2007
Posts: 53
class TestMyThread extends Thread {


I Executed the above program and got the error which am facing for the first time Please help me to resolve this

C:\Other Stuff\MyFirst\Excerpt from class Thread is public, should be declared in a file named
public class Thread implements Runnable
C:\Other Stuff\MyFirst\ cannot access Thread
bad class file: C:\Other Stuff\MyFirst\Excerpt from
file does not contain class Thread
Please remove or make sure it appears in the correct subdirectory of the classpath.
class TestMyThread extends Thread {

Tool completed with exit code 1

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39530
Duplicate of

Ping & DNS - updated with new look and Ping home screen widget
I agree. Here's the link:
subject: Class Path error Help
Similar Threads
stack overflow error
throw in finally clause
Problem with sourceforge project
please help me to resolve this