Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • 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

missing classes

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to compile some java code that calls for external classes.

I get 'cannot resolve symbol' errors along with the class name that cannot be recognized. I know how to compile java code, but I am having a problem with this, because my code cannot find the classes needed for the source.

Regards
 
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
then you will need to add those resources to the classpath (javac -classpath) so the compiler can find the resources.... if you do not have these resources, then you can not compile...


pascal
 
Dale Smirth
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks - I am still having a problem.

Could someone post an example? I am working on OS X platform. I can see my directory structure.
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you be more specific? What classes are "missing"? Are these classes you created yourself? Are they classes from a third-party libarary? Or are they classes from the Java API?

If the "missing" classes are classes you wrote, are they in a package? If so, do you have the directory structure in your file system set up to mirror the package hierarchy you have created?

Also, how are you compiling your code? Are you using the command-line or an IDE? If you are using the command-line, what is the EXACT command you are using to compile?

These questions are some of the details we need in order to help you resolve the problem. If you can answer these questions directly, we will be glad to help you from there.

Layne
 
Dale Smirth
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Layne Lund:
Can you be more specific? What classes are "missing"? Are these classes you created yourself? Are they classes from a third-party libarary? Or are they classes from the Java API?

If the "missing" classes are classes you wrote, are they in a package? If so, do you have the directory structure in your file system set up to mirror the package hierarchy you have created?

Also, how are you compiling your code? Are you using the command-line or an IDE? If you are using the command-line, what is the EXACT command you are using to compile?

These questions are some of the details we need in order to help you resolve the problem. If you can answer these questions directly, we will be glad to help you from there.

Layne



These are classes from a third party(CMUniverisy-Sphinx4). The first line of the source code that I am trying to compile says:




I believe that my file system mirrors package hierearchy. I see several files in my full path ( /sphinx4/sphinx4-1.0beta/demo/sphinx/hellodigits).



I am using command line - my command to compile is :



I am issuing the above command from '/sphinx/sphinx4-1.0beta' level


Thank you
[ April 21, 2006: Message edited by: Dale Smirth ]
 
Dale Smirth
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
^^^

Sorry - some of my above post had been deleted. I added missing parts.

Regards.
 
reply
    Bookmark Topic Watch Topic
  • New Topic