Course Content
Java OOP
Java OOP
Installing Java
How to install Java?
- There are links for downloading Java: MacOS, Windows;
- After downloading the file, open it, and you will be greeted by the Java installer. Go through the installer, and you can read the details if you want. After that, the installer will notify you that Java will take up some space on your device. Click the "Install" button with confidence and wait for the installer to finish its work. Congratulations, Java is now installed on your device!
How to check the Java version installed on your device?
- Open the terminal on macOS (type terminal in Launchpad search) or open the Developer Command Prompt on Windows (press Win + R and type cmd in the appeared window). Then, enter the command:
java -version
. As a result, you should see something like this on the console screen:
If the Java version is displayed in the console, it means you have successfully installed it.
What to do if the Java version is not displayed:
- Reboot your device and then try entering the command
java -version
again; - Try entering the command
java -help
. If the terminal says that such a command does not exist, proceed to the next step; - You will need to reinstall Java using the installer once again. To do this, repeat all the instructions above.
Thanks for your feedback!