Stuck with Packages!
Posted on 2003-02-20
This is a very simple problem which has taken my good amount of time. I am using 2 java files which are in my corejavalib directory. My directory structure is something like this -
and my 2 java files are in corejavalib directory since these files are the part of corejavalib package. Here is a simple code of my 2 java files.
/* DBAdapter.java file */
public class DBAdapter
DBCommond myC = new DBCommond();
public String getAdaptorName()
public String getCommondTypeMode()
/* DBCommond.java file */
public class DBCommond
public String getCommondType()
Now the problem is that when I compile DBAdapter.java file it gives me the error that it cannot able to compile DBCommond class. Can anybody help me? If I have to change something in my classpath or path please tell me excatly according to the above directory sturture.
* Just for your information I have already set my CLASSPATH to .;C:\glueI; and my PATH variable is set to the directory where my javac file exsits.