• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compile problem

 
chris baylor
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im having an issue with compiling a practice code.

Im importing from swing and i have set my path to the right directory but when i try to compile it gives me:
cannot find symbol

my computer didnt have a classpath so i created one and put the location in there but it still didnt work.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What symbol can't it find ?
Show the code (in code tags) and the full and exact error message
 
Campbell Ritchie
Sheriff
Pie
Posts: 49796
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Delete the classpath you have just created; it is unnecessary.
And as Joanne said, Tell Us The Details. "Cannot find symbol" usually means an error in the code.

And welcome to JavaRanch
 
fred rosenberger
lowercase baba
Bartender
Posts: 12186
34
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
aside from saying "cannot find symbol", the error message tells you exactly what symbol it cannot find and on what line. if it's a variable, make sure it's in scope. sometimes a misplaced declaration can do it:

vs
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic