![]() ![]() To achieve this, e have to run the command below $ update-alternatives -config java $ java -version How to manage JavaĪs seen above we have a few Java installation in our system, and as good practice, It's advisable to set the default Java version. To verify that we have Java installed and check out the version, run the command below. To install default JDK, run $ apt-get install default-jdk Checking Java version At the time of writing, the default JDK installs Java OpenJDK 11 version. The default-jdk package comes with JRE, so there's no need to install JRE once you've installed JDK. ![]() This is commonly used with IDE's such as Eclipse and Netbeans for compiling Java programs. On the other hand, there exists a default Java installation popularly known as JDK, short for Java Development Kit. Next, Install Java Runtime Environment $ apt-get install default-jre ![]() Log in as root user and run the command below $ apt update This will install OpenJDK 11 which is the recommended version.įirst off, let's update the system. This is the easiest option when installing Java since it comes packaged with the Ubuntu system. OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode) How to Install default JDK/JRE (Java 11)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |