aspose file tools
The moose likes Beginning Java and the fly likes Another One of Those Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Another One of Those "Symbol Not Found" Questions" Watch "Another One of Those "Symbol Not Found" Questions" New topic
Author

Another One of Those "Symbol Not Found" Questions

Mitchell Huo
Greenhorn

Joined: Apr 08, 2011
Posts: 2
Hey guys, this is my first post, so if I break any secret programmer's forum codes, please let me know. Anyways, I'm making a server that waits for connections, gets responses from that client, and writes information through the sock to the client. I made four classes/threads total: Global, Troy, KeyListener, and PortListener. The first is just for global variables, the second listens for incoming connections and hands them off to the PortListener, which listens for responses, and the KeyListener listens for commands from the console.

However, I keep getting this pesky compiler error:



Any help would be sincerely appreciated. Oh, and here's my source:

Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700


This is not a constructor just a regular method. So you only have the default constructor.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 530
I'm going to go out on a limb and say that ALL of the code you wrote intending to be constructors are methods instead, because they specify a return type. Constructors don't specify a return type, not even 'void.'


Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
Mitchell Huo
Greenhorn

Joined: Apr 08, 2011
Posts: 2
Oh, thanks guys. Sorry, like I said before, I'm new to programming. And not to make excuses, but I started at 10 and finished and midnight. I think my brain was a little fried.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

As a result, you get only the default constructors which have no parameters.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Another One of Those "Symbol Not Found" Questions
 
Similar Threads
multiple clients
problem with my threading
Not Sure
problems with my server
InputStreamReader returns null