Ok, didn't know if this should go here or somewhere else... but I gots a problem thats happened twice now and I don't know what it is. I have the latest non beta Java SDK (j2sdk1.4.2_04) installed and I used to be able to compile things via batch scripts I made... they would be something like this:

Code:
@echo off
path=C:\j2sdk1.4.2_04\bin
javac *.java
java Driver
But now everytime I run these batch files that worked before, I get this error:

Exception in thread "main" java.lang.NoClassDefFoundError: Main
And to answer any obvious questions, my programs do have a main method and they have compiled perfectly before and do so on different systems as well.

I've reinstalled Java three times and still haven't been able to get it work. The only way I am able to use Java at all is by installing the Netbeans IDE and using package statements in my code. This being the 2nd time this has happened since I started coding (fixed first time by formatting), I need some help?

- dave t