Hey,
I am trying to compile a
java class having a package defination referring a java class with a default package.
The code for the default package class is .
public class Test{.
public static void main(
String[] args){
System.out.println("Hello World!");
}
}
This class compiles fine.
I have another class called PackJava, whose code is :
package
test;
import Test;
public class PackJava{
public static void main(String[] args){
Test test = new Test();
System.out.println("Hello World!");
}
}
I have Test file in the windows path
D:\development\packagetest\example
and the PackJava java file in the path
D:\development\packagetest\example\test
I have set the CLASSPATH environment varibale as
D:\development\packagetest\example;.
When I try to compile the PackJava from the
D:\development\packagetest\example path giving the command as
javac -classpath . test\PackJava.java
or
javac -classpath %CLASSPATH% test\PackJava.java
it gives me error,
Do any of you have an idea of the parameter i should pass
to the -classpath option
Thanks