is not recognized as ...in the console!
pathcommand by itself without any arguments. When you press ENTER it displays its current setting. Examine the part that refers to the JDK and ensures it indeed points to where your JDK is installed.
NoClassDefFoundErrorwhen I attempt to run my program!
Prog.classis indeed present in the working directory. If so, try running it using the command:
java -cp . Prog. If this worked then your
classpathenvironment variable is not set properly (perhaps some other program set it incorrectly). Locate this variable in the Control Panel (like under System, Advanced), edit it, and prefix it with
UnsupportedClassVersionErrorwhen I attempt to run my program!