• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

cannot find symbol

 
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 .
 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 518
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 518
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks it is working now
 
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic