I meant at the system command prompt, not the server command prompt. Also, there's a space between the word java and the dash.
My next advice is likely to be the same anyway: You probably actually have multiple Java versions installed. Uninstall *all* versions of Java on your computer, then install the latest version, which is version 7 update 5 or 1.7 update 5 (same thing)