i have already created a package with the following line of code:
javac -d "d\folder1" MyClass1.java
the file has the package declaration statement 'package p1;' .it runs fine and it creates a package folder in d:\folder1.
Similarly i created 2 other classes(myClass2 and myClass3) in different files as all classes were public and put them in the same package folder
but the problem is when i try to access these classes from another file using 'import p1.*;' ,i get an error while if i write 'import p1.myClass1;' or myClass2/myClass3 the programn runs fine.i have already set the classpath varible to the package foler still the problem peersists. Why can't i use "p1.*" ?