File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compile problem

 
chris baylor
Greenhorn
Posts: 1
  • 0
  • 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
Pie
Posts: 3742
16
  • 0
  • 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: 47293
52
  • 0
  • 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
Pie
Posts: 12022
25
Chrome Java Linux
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic