• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Compilation Error "Cannot resolve symbol"

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm getting the error above when I attempt to compile any class in the current package that reference any other class in the same package. Note: all classes are declared public.
Classes in the package that make no references to other classes compile fine. A friend tried compiling the same classes on his PC and they compile without error. I'm really stupefied as to what's causing this error. Any ideas?
Kind regards,
Adam
 
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Adam,
at first glance seems to be a classpath problem.u need to have current directory in your classpath.


assuming u r not using packages.
just try compiling your files using
javac -classpath %classpath%;. FileName.java
and see if it compiles now.
if not post the error /your directory structre/part of your code
that is giving error.
regards
deekasha


[This message has been edited by deekasha gunwant (edited October 22, 2000).]
 
Adam Ratcliffe
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Deekasha
Thanks for the help, that seems to have fixed things :-)
Adam
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was having same problem with most of my programs that included a class method, so all i did was to identify the method.
For example; public compare();
if (a > b) ..........gives error
replaced with; double compare;
if ( a > b)
 
reply
    Bookmark Topic Watch Topic
  • New Topic