Page 22 - CTS - CSA TP - Volume 2
P. 22

COMPUTER SOFTWARE APPLICATION - CITS




           •  Under “System Variables,” click “New” and add a variable named JAVA_HOME with the value set to the JDK
              installation directory (e.g., C:\Program Files\Java\jdk-21.0.2\bin).


















           •  Click “OK” to save the changes.
           1  Verify JDK Installation:


























           •  Open a new Command Prompt window and type java -version. This should display the version of Java installed,
              confirming that JDK 21.0.2 is installed correctly.
























           •  Also, type javac -version to verify that the Java compiler is installed and accessible.

           That’s it! You have successfully installed JDK 21.0.2 on your Windows system. You can now start developing and
           running Java applications.




                                                            7
 CITS : IT & ITES - Computer Software Application - Exercise 79  CITS : IT & ITES - Computer Software Application - Exercise 79
   17   18   19   20   21   22   23   24   25   26   27