J
Jeff Sandler
Java-ians of all levels,
Managing and importing classes is supposed to be easy using PACKAGE.
However, I cannot make it work. Here is a recent attempt:
the file called packageThingie.java contains
package myPackage;
public class packageThingie
{
}
the file called testMyPackage.java contains
import myPackage.*
public class testMyPackage
{
testMyPackage() //default constructor
{
} //closes constructor
public static void main(String args[])
{
testMyPackage myTMP = new testMyPackage();
}
}
When I compile, I keep getting a message saying the package myPackage
doesn't exist. FYI, both .java files and their corresponding .class
files are in the C:\j2sdk1.4.1\bin directory.
HELP!!
Managing and importing classes is supposed to be easy using PACKAGE.
However, I cannot make it work. Here is a recent attempt:
the file called packageThingie.java contains
package myPackage;
public class packageThingie
{
}
the file called testMyPackage.java contains
import myPackage.*
public class testMyPackage
{
testMyPackage() //default constructor
{
} //closes constructor
public static void main(String args[])
{
testMyPackage myTMP = new testMyPackage();
}
}
When I compile, I keep getting a message saying the package myPackage
doesn't exist. FYI, both .java files and their corresponding .class
files are in the C:\j2sdk1.4.1\bin directory.
HELP!!