Home > Back-end >  CMD Java can not run, javac
CMD Java can not run, javac

Time:10-17

When installing the JDK is the first choice of the default path, the second jre installed on the desktop, then the desktop folder is my folder under shear to the original path, has taken the bin and jre bin to the path environment variable configuration, type CMD runtime javac to jump out of the catalog, but input display an error in the Java should now how to do?

CodePudding user response:

Here I suggest you reinstall, specification, are installed in a folder

CodePudding user response:

Path, the path of the environment variable check check

CodePudding user response:

Suggest you to uninstall the existing and reinstall, this time don't change any path

CodePudding user response:

Javac is compiled, Java is running, running need is the jre, so your software lacks the jre, JDK installation should be lack of the jre, you can check whether there is the jre folder in the installation directory

CodePudding user response:

refer to the original poster weixin_46435920 response:
JDK installation is the first choice when the default path, the second jre installed on the desktop, then the desktop folder is my folder under shear to the original path, has taken the bin and jre bin to the path environment variable configuration, input javac CMD runtime to jump out of the catalog, but input display an error in the Java should now how to do?


Installation path will be written to the executor in the configuration file, find the configuration file is not as good as to install fast, so after the installation can not move, do not have to move,