This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes Thread program not compiling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Thread program not compiling" Watch "Thread program not compiling" New topic
Author

Thread program not compiling

Radha Raman Pandey
Greenhorn

Joined: May 14, 2011
Posts: 1
I am running below code but getting compile time error " Cannot Find Symbol" .




[HENRY: Added code tags]

Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18500
    
  40

Radha Raman Pandey wrote:I am running below code but getting compile time error " Cannot Find Symbol" .


Works for me. Perhaps you can give us more detail about the error that you are getting?

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

please provide the stack trace of the exception you are getting


http://plainoldjavaobject.blogspot.in
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Lalit Mehra wrote:please provide the stack trace of the exception you are getting

Compiler errors don't have stack traces, as they are very different from exceptions / throwables which only occur at runtime.

But yes, seeing the full compiler error would help. It would at least tell you which symbol could not be found.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Thread program not compiling
 
Similar Threads
When both Thread and Runnable have public void run
Threads doubt??
Threads: sleep() !
2 thread instances using the same Runnable object
Compile Error : cannot find symbol constructor Thread(Runnable)