aspose file tools*
The moose likes Java in General and the fly likes cannot find symbol Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "cannot find symbol" Watch "cannot find symbol" New topic
Author

cannot find symbol

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi,

I tried to compile a program which i have already compiled and i didnt get any error.But now it iis showing the following error:


Test5.java:37: cannot find symbol
symbol : class Record5
location: class Test5
Record5 h= new Record5();
^
Test5.java:37: cannot find symbol
symbol : class Record5
location: class Test5
Record5 h= new Record5();



my code is

when i am doing this code in eclipse.It doesnt shows any error.I have compiled this code already.But i didnt get any error and i am using that class file too.Suddenly it isa showing the following error.

please help me to solve this problem

Thanks .
Matteo Di Furia
Ranch Hand

Joined: Jun 20, 2008
Posts: 102
It seems you don't have class Record5 in your classpath, either at compile or at run time. It is not clear from your post : can you compile it correctly but then you got an error at runtime ? Or can't you compile it at all?.
Check for it.
preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Thanks for your reply.I am having the class file Record5 in the path /var/lib/asterisk/agi-bin.I am having the Test5.java in the same path.I have compiled this program already before 1 week.It compiled well.

i have compiled it like the following:

javac -cp mysql-connector-java-3.0.17-ga-bin.jar:.:asterisk-java-0.3.1.jar Test5.java
preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Thanks it is working now
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot find symbol