my dog learned polymorphism
The moose likes JSP and the fly likes compilation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "compilation error" Watch "compilation error" New topic

compilation error

akila sita

Joined: Oct 23, 2002
Posts: 1
when I compile my java program it shows a "cannot resolve symbol" error. Is it due to a mistake in setting the classpath
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
could be. you should call your java programm with javac -classpath first.jar:second.jar java-file
while first & second jar are the files you need.
The second thing you can check is that you have no typo error in your classes. Check the code which throws the error. Maybe you misspelled some variable or class
Don't get me started about those stupid light bulbs.
subject: compilation error
It's not a secret anymore!