The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

urgent help on package

Posted by siva on December 19, 2000 at 12:02 AM

There are two files
This is first file
pacakge package1;
public class Box {
public Box(int a, int b){
int len = a;
int wid = b;
}
}
I stored this file in package2 directry
Then next file is

package package2;
public class Test {
Box box= new Box(2,4);

}
I stored this also in package2 directry. Then I compile first one
no error message.But when compiling second one the error message is
"class package2.Box not found"
I couln't find the reason. If you know please tell me
Thank you



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us