• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown


Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have saved a class called classA in a package called MyPackage. I am trying to access classA in MyPackage from classB from same MyPackage, but when I am compiling I am getting as classA cannot find symbol. I guess there is some problem with the classpath. How to give a classpath of the classA file when you are compiling?
Posts: 14691
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
About CLASSPATH, you should read this and figure it out :

You naming convention is a funny one
Class names usually start with a capital letter and package names with a minuscule. You are doing the opposite You'd better rename them.
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sai.. check out the link sent abv.. it is really good..

but your answer may be this.. you r supposed to set path to the default directory too..

jus go to my computer and set the environmental variables and set path=classpath and value=.;

.(dot) refers to the current working directory.
[ March 31, 2006: Message edited by: vignesh hariharan ]
You can't have everything. Where would you put it?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic