HomeLinuxSet up OpenJDK on Linux Mint 21

Set up OpenJDK on Linux Mint 21


Java is a programming language used for the event of Net & Utility servers, Android apps, desktop Purposes, and video games. You too can use Java in your Linux Mint system for the developments of various purposes. You may comply with the article under to know how one can set up an open-source Java growth package (JDK) on Linux Mint.

Set up OpenJDK on Linux Mint 21

To put in open-source Java growth package you should use the strategies talked about under:

Putting in OpenJDK By means of Software program Supervisor – Linux Mint

You may set up an open-source java growth package by utilizing the software program supervisor of Linux Mint. To finish the set up, open the software program supervisor, seek for jdk, choose the most recent model because it has numerous variations obtainable and click on on the Set up button:

Putting in OpenJDK By means of Terminal – Linux Mint

You too can set up OpenJDK by utilizing the Linux Mint. You may comply with the steps talked about under to put in the OpenJDK utilizing terminal:

Step 1: Listing down all of the model of OpenJDK obtainable on the Linux Mint executing the command given under:

$ apt-cache search openjdk

 

Step 2: To put in the default model of OpenJDK in your system execute the command talked about under:

$ sudo apt set up default-jdk

 

Step 3: You may set up a particular model by utilizing the syntax given within the command talked about under:

$ sudo apt set up openjdk-<model>-jdk

 

For demonstration i’ve put in the most recent model of OpenJDK that’s 19 by utilizing the above given syntax:

$ sudo apt set up openjdk-19-jdk

 

Step 4: After the profitable set up of the OpenJDK you possibly can verify its model by working the command talked about under:

 

Step 5: You may set the specified model as default model so to do that first you possibly can checklist all of the OpenJDK variations put in on Linux Mint by working the command talked about under:

$ sudo update-java-alternatives –list

 

Step 6: Now execute the under command and you’re going to get the choice to set the specified model to set as default:

$ sudo update-alternatives –config java

 

Now enter the respective variety of the OpenJDK model you wish to set as a default like if wish to set OpenJDK 19 as default so I can both enter 3:

Uninstall OpenJDK on Linux Mint 21

You may uninstall the OpenJDK by utilizing the next strategies:

By means of Software program Supervisor

To take away the OpenJDK out of your system you possibly can simply open software program supervisor, seek for OpenJDK and click on on button mentioning Take away:

By means of Terminal

To take away the OpenJDK out of your system utilizing terminal you possibly can execute the command given under:

$ sudo apt take away –autoremove openjdk-19-jdk

 

Conclusion

Java is a well-known language used for the event of assorted sorts of purposes. This language can also be appropriate with Linux Mint and you may set up open-source java growth package by utilizing software program supervisor and apt package deal supervisor as properly by utilizing the information talked about within the above article.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments