I have Windows 7, installed jdk1.7.0 and its supporting jre7. My problem is compilation part works perfectly, but while running the Java program I get this error saying:
If you have a single .java file to compile using command-line , then remove topmost package parts from the code, the compile again, it will work.
This worked for me.