Hello, I am trying to get
JAVA certified and using the K & B as my study guide. Presently, I am trying to learn about packages and I am having the following problem. I used one of the examples from the book.
In one file called permit.java, I have the following.
package
test;
public class permit
{
public void callit()
{
System.out.println ("calling package permit");
}
}
The other file called client.java has the following:
package driver;
import test.*;
public class client
{
public static void main(
String[] something)
{
permit checking = new permit();
checking.callit();
}
}
Both these files reside in the java\bin directory. When I try to compile the client.java, I get the following error messages.
C:\java\bin\client.java:2: package test does not exist
import test.*;
^
C:\java\bin\client.java:7: cannot resolve symbol
symbol : class permit
location: class driver.client
permit checking = new permit();
^
C:\java\bin\client.java:7: cannot resolve symbol
symbol : class permit
location: class driver.client
permit checking = new permit();
Any help would be appreciated. Thank you.