Greetings every1,
I'm new to Java, currently i'm working on packages & interfaces. I'm working in D:\Was\Java\MyPrograms.
I made a folder and named it MyPack, then placed this code in it.
package MyPack;
class A {
A() {
system.out.println("Inside A");
class Test {
public static void main(String args[]){
A obj1=new A();
I'm saving this file with the name in the MyPack folder. Then I compiled it, and everything is fine. But when i execute it, it shows some errors. I know this is coz the path is not correct in CLASSPATH. I set it like this set CLASSPATH=.;D:\Was\Java\MyPrograms; but still no use. Can any1 plz help me.

[ArchAngel added CODE tags]