Hi

I have started java language yesterday and i am unable to run my first program.

I am following the book the complete reference of java by mc-graw hill.

It told me to run the program from the dos mode by compiling it with javac as
D:\javac Example1.java

It did not work so i went into the directory of java and then into bin and executed javac from there.

As expected a class Example1.class was created. I executed
D:\Program Files>j2sdk_nb>j2sdk1.4.2>bin>javac D:\a\Example1.java

Files were stored in the folder a in the drive drive d:

it compiled fine.

Now i tried the java command and it gave an error which i am unable to understand.

D:\Program Files>j2sdk_nb>j2sdk1.4.2>bin>java D:\a\Example1

The error is:
Exception in thread "main" java.lang.NoClassDefFoundError: D:\a\Example1

Please help me
i am unable to get the problem.

What should i do