How to Install Java on Ubuntu

Before installing Java on Ubuntu you need to choose between Open JDK and Oracle JDK. The difference is described here. Personally, I prefer Oracle JDK. Oracle JDK To install Java on Ubuntu you need to open Terminal (Alt + Ctrl + T) and type: This will add a PPA repository that contains Java installer. Then … Read more

How to Install Java on MacOS

To install Java on MacOS you need to go to the official Oracle download page and click on the major version of Java. Press “JDK Download” link and scroll down and download macOS Installer. When downloading is finished launch dmg file and double-click on the icon. Java installer welcome page will be opened. Press “Continue”. … Read more

How to Install Java on Windows 10

To install Java on Windows 10 you need to go to the official Oracle download page. Select the major version of Java and press “JDK Download” button. I’ve taken the latest release version to install, but I recommend using LTS (long-term support) version for everyday needs. Download Windows x64 Installer: Launch installer when it is … Read more

How to set Java path and JAVA_HOME in Windows 10

Some Java applications require to define JAVA_HOME and Java path. Keep reading and I’ll explain how to do it in Windows 10. How to set Java Home You need to do the following to set JAVA_HOME: Search for Advanced System Settings and launch it: Go to Environment Variables: Press “New” button in “System variables” section: … Read more

How to set Java Home environment variable on Mac OS X

Here I’ll explain how to add JAVA_HOME variable on your MacBook (Mac OS). Set JAVA_HOME in .bash_profile Open Launchpad and search for Terminal and launch it. Edit ~/.bash_profile: and add to the end: ${/usr/libexec/java_home} is a symlink for current Java. Press Ctrl+X to exit and “Y” to save your changes. Now we need to recompile … Read more

How To Set Java Path & JAVA_HOME in Windows 10, MacOS & Ubuntu

I’ll explain to you how to set Java path variable on Windows, macOS, and Ubuntu (Linux). I’ve prepared awesome examples of how to set Java Home via command prompt and GUI (Windows) as well. I’ll show you how to check Java version and verify Java Home variable. Select link depending on your operation system: Set … Read more

How to Update Java on Windows 10

Java update mechanism could be different on Windows 10 depending on your needs: If you want to update from one major version of Java to another one, e.g. from Java 8 to Java 11 – you need to uninstall an old version and install a new one. If you want to update a minor version … Read more