


Follow our steps below to get your Java commands via command prompt working again, and leave a comment in the comments section if you encounter any further issues (or know of a better solution).

Luckily, this is fairly easy to fix, as it just requires addressing one of the above problems with the appropriate solution. Error output when trying to run Java commands in Command Prompt. Missing Java path in your Environment Variablesįor example, we encountered this issue when updating Java SE to the latest version – we likely previously had a 32-bit Java installation, and when running the 64-bit Java installer, our Java path changed.This could be due to several factors, including but not limited to: jar file through the command prompt, such as using the command “Java -Jar xxxx.jar”, you might encounter the following error message: Error: opening registry key ‘Software\JavaSoft\JRE’Įrror: Could not find Java SE Runtime Environment.
