install java jdk Environmental Science : I'm using jdk16 edition . Download address :
https://www.oracle.com/java/technologies/javase-jdk16-downloads.html
And then run , Direct default is the next step to install :
After installation , open CMD, Input java and javac, If you can pop up a bunch of operation prompts , On behalf of the successful installation :
The next step is configuration Java Environment variable .Jdk11 Version above , There is no default Jre Folder , You need to go through it manually Jlink To generate information about Jre Catalog :
adopt Jlink To create Jre File directory method : Use administrator privileges , open windows powershell Command prompt , And then locate java Installation directory ( The directory above ).
Then use the command :.\bin\jlink.exe --module-path jmods --add-modules java.desktop --output jre
After execution , You can generate jre The folder :
Then the configuration environment variable , Right click the computer icon -> attribute -> Advanced system setup -> environment variable , Create a new system variable , It's called JAVA_HOME, The variable value is the path to the installation , For example, my installation address is as shown in the figure below .
Let's create another one CLASSPATH, Variable value is :
.;%JAVA_HOME%\bin;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib
Be careful : The value of the variable begins with a period and a semicolon .; This can't be left out .
Last , stay Ptah In system variables , Two new variables
value :
%JAVA_HOME%\bin
%JAVA_HOME%\jre\bin
Here we are ,Java Environment configuration complete .
And then there was node.js Environmental installation .Node.js Download address :
https://nodejs.org/dist/v14.17.0/node-v14.17.0-x64.msi
The default is the next step .Nodejs It will be added to the environment variable by default during installation , So there is no need to add environment variables here . verification nodejs Is the installation successful :cmd Open Command Prompt , Input node -v as well as nmp -v, If there is a display version number , On behalf of the successful installation :
That's all for this section , Welcome to your attention 、 Comment on 、 Recommend or like ~~
copyright , Reprint please indicate the source :https://www.cnblogs.com/weskynet/p/14852471.html