Hello,
I think I am struggling with a known prob but I can't seems to figure it out.
I have a simple class and I am getting the above error when I try to run it from the command line.
when I try to run it from an IDE no problem.
public class Test {
public static void main(String [] args){
System.out.println("it works");
}
}
I set the classpath to the location of the class and also try to run the program using
# java -classpath . Test.class
if I echo the classpath I am getting to correct path
what am I doing wrong ?
thanks in advance
Shraga.
I think I am struggling with a known prob but I can't seems to figure it out.
I have a simple class and I am getting the above error when I try to run it from the command line.
when I try to run it from an IDE no problem.
public class Test {
public static void main(String [] args){
System.out.println("it works");
}
}
I set the classpath to the location of the class and also try to run the program using
# java -classpath . Test.class
if I echo the classpath I am getting to correct path
what am I doing wrong ?
thanks in advance
Shraga.