Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'Can't resolve symbol' error

Status
Not open for further replies.

rlh145

Programmer
Feb 19, 2001
36
US
I am teaching myself Java by going through a book written for Cobol programmers. I get this 'Can't resolve symbol' error when I try to use this statement":

ErrorMsg setErrorMsg = new ErrorMsg;

The error seems to be pointing to 'ErrorMsg'. Now, I have already defined in the same directory an ErrorMsg class (a file called ErrorMsg.java).

I am not sure what else to do. If more information is needed, let me know and I will post it.

Thanks!
Ralph
 
You need brackets after ErrorMsg, like this:

ErrorMsg setErrorMsg = new ErrorMsg();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top