Java is a powerful tool for creating applications, ranging from everyday and simple solutions to huge software packages. It was widely distributed among free developers due to the fact that it is used to create applications on the Android platform. The program is constantly being improved and modernized. It adds new features and capabilities. How to update Java will be described in this article. Alternative operating systems will also be considered.
How to update Java on a computer on Windows
When installing Java in the Windows operating system, a special utility is immediately installed to monitor the current version and to monitor the availability of newer servers. The utility automatically checks whether an update is currently needed and, if the result is positive, prompts the user to do this.
If this does not happen, then you will need to configure the update check system. To do this, go to the Java configuration menu. For all versions of Windows, go through the Start menu to search. In the line, just enter "Java Control Panel" and press Enter.
The Java Control Panel opens. It has several tabs, we are interested in Update. Here you can uncheck or check the box "Check for updates automatically." You can also specify when you want to receive a notification - before installation or before downloading a package of new software. At the bottom of the panel there is a button for immediate updates.
Usually, before updating Java, the system will display a message stating that the new package is completely ready for installation.
How to update Java on Linux
Here you need to digress and talk about how Java is installed on some Linux distributions. For example, in one of the most popular, Ubuntu, there is already a standard version out of the box. But it is not from Oracle, the program is called OpenJDK. The version is in the standard repository, and user intervention does not require updating it.
There is no Java from Oracle among applications for Ubuntu , so you can install it from third-party repositories or manually. In the first case, the system itself will offer to upgrade, in the second, you may have to uninstall the old version, and then install the new one.
Before upgrading the Java version, go to the official Oracle website and download the latest version. Note that archives for Linux have the tar.gz extension. You need to download both the JRE version and the JDK.
Downloaded archives must be placed at the Java location (usually / usr / local / java) and unzipped to the folder you specify.
Now it remains to edit the environment variables. To do this, type the command in the terminal: sudo gedit / etc / environment.
A file with the current paths to the Java folder is displayed. You need to change them to those that turned out after unpacking the downloaded archives. View environment variables for changes. If so, add the required data.
Small recommendation
To avoid unnecessary manipulations before updating Java, it is recommended to install it from third-party repositories. They can be found on the official support sites of a particular distribution. In the future, the system itself will check for updates, automatically going through all the repositories, including the system ones.
Conclusion
The article talked about how to update Java on a computer running Windows and Linux platforms. In both environments, there are options to do this automatically, relying on the system, and manually, that is, independently.
When updating manually, special attention should be paid to the type of downloaded files. There are separate files for the virtual machine and separate files for the development environment. In addition, there are versions for 32-bit and 64-bit systems.
Experts recommend that these actions be performed only in automatic mode. This will avoid missing important security updates and be aware of all past changes.