Home > database >  Why can't a CMD can run javac, run Java
Why can't a CMD can run javac, run Java

Time:10-20

Isn't me environment configuration has a problem, I tried many times environment configuration Settings are not solved, consult everybody, follow video learning environment configuration, and then can run in the CMD, but can't run Java,

CodePudding user response:

Analysis:
Are registered in the register list to install the JDK, open the registry to see in the following three files (
Java Development Kit, Java plug-in, Java Runtime Environment in the face of these three) will find the registration list should be path may not be right, according to the following methods can be solved,
Solution:
One, click on start - "run -" enter regedit determine open registry,
Second, find the HKEY_LOCAL_MACHINE/software/javasoft, delete the javasoft,
Delete Javasoft will delete all these three, the problem is out of here, so you need to delete item Javasoft,
Three, reshipment JDK (if you don't change the file location is selected by default, that is the best!) Reshipment after will find, to have a HKEY_LOCAL_MACHINE/software/javasoft item, it is these parameters are new, there is no problem.
  • Related