Hızlı yanıt: kod örneği
- Extract the zip file into a folder, e.g. and it will create a
C:\Program Files\Java\
folder (where the bin folder is a direct sub-folder). You may need Administrator privileges to extract the zip file to this location.jdk-11
- Set a PATH:
- Select Control Panel and then System.
- Click Advanced and then Environment Variables.
- Add the location of the bin folder of the JDK installation to the PATH variable in System Variables.
- The following is a typical value for the PATH variable:
C:\WINDOWS\system32;C:\WINDOWS;"C:\Program Files\Java\jdk-11\bin"
- Set JAVA_HOME:
- Under System Variables, click New.
- Enter the variable name as JAVA_HOME.
- Enter the variable value as the installation path of the JDK (without the sub-folder).
bin
- Click OK.
- Click Apply Changes.
- Configure the JDK in your IDE (e.g. IntelliJ or Eclipse).
java -version
JAVA_HOME
PATH
%JAVA_HOME%\bin
JAVA_HOME
PATH