compiler says that package does not exist...why?
I have a directory called myutil, and inside that, a class "PrintTeste". Out of package, one class called "Teste"...
See the code:
publicclass Teste{
/** Creates a new instance of Teste */
public Teste(){
myutil.PrintTeste.mPrint();
}
publicstaticvoid main(String []args){
Teste teste =new Teste();
}
}
inside package myutil:
package myutil;
publicclass PrintTeste{
publicstaticvoid mPrint(){
System.out.print("teste ");
}
}
using javac myutil/PrintTeste.java.... it's ok
But, when I try compile using javac Teste.java I receive the following message:
Teste.java:8: package myutil does not exist
myutil.PrintTeste.mPrint();
^
Using Netbeans 5.5, this error does not occur.
My environment variables CLASSPATH, JAVA_HOME AND PATH were right setted...I'm using Windows XP, jsdk 1.5.0_07
So, what could be happening?
Thank for yout help!
Eliselbert

