+5 votes
308 views
Uninstall JAVA on Linux

in Linux / Unix by (551k points)
reopened | 308 views

1 Answer

+3 votes
Best answer

How to uninstall Java on Linux

Java is one of the most popular programming languages ​​since it is compatible with the vast majority of current operating systems and it provides us with functions such as:

 

Java functions

 

  • It has a neutral architecture
  • Independent platform
  • Object-oriented software
  • insurance
  • Java syntax is based on C ++
  • Java programs are run within a virtual machine sandbox and many more

 

 

Although Java in Linux is popular and functional for developers and for the deployment of many applications, there may come a time when its use is no longer necessary and we want to uninstall it from Linux, TechnoWikis will explain how to uninstall Java from Linux ..

 

 

We also leave you the video tutorial to know how to uninstall Java in Linux.

 

To stay up to date, remember to subscribe to our YouTube channel!   SUBSCRIBE

 

How to uninstall Java on Linux

 

Step 1

The first step will be to know the current version of Java, for this we access the terminal and execute:
 java –version 
image

 

 

Step 2

After this we will execute the following command:
 sudo dpkg --list | grep -i jre 
Step 3

This will create a listing of the available Java Runtime Environment (JRE) versions:

 

 

image

 

 

Step 4

As we see, the current version is 2, to eliminate Java from Linux we will execute the following. We enter the letter S to confirm the uninstallation.
 sudo apt remove default-jre 
image

 

 

Step 5

Then we execute the following to complete the process. We enter the letter “S” again to confirm the cleanliness of Java in Linux.
 sudo apt autoremove default-jre 
image

 

 

Step 6

We check with the command "java –version" that Java is not installed on Linux:

 

image

 

 

Step 7

It is a very simple process to uninstall Java completely from Linux and at any time we can reinstall some of its options, which are:

 

Software developers
JDK (Java SE Development Kit): this is ideal for Java developers which includes a JRE integrated by tools that allow developing, debugging or monitoring Java applications.

 

JRE Server (Server Java Runtime Environment)
It allows deploying Java applications on servers since it integrates tools for monitoring JVM and tools designed for server applications, but does not contemplate browser integration.

 

JRE (Java Runtime Environment)
is the most popular Java application as it is performance focused for end user applications, JRE is made up of the tools necessary to run Java applications on the system.

 

We see how with these simple commands we have uninstalled Java in Linux..

 


by (3.5m points)

Related questions

+5 votes
1 answer
asked Mar 8, 2021 in Linux / Unix by backtothefuture (551k points) | 162 views
+5 votes
1 answer
+3 votes
1 answer
asked Oct 27, 2020 in Windows 10 by backtothefuture (551k points) | 358 views
+3 votes
1 answer
asked May 8, 2021 in Linux / Unix by backtothefuture (551k points) | 330 views
+3 votes
1 answer
asked Nov 6, 2020 in Linux / Unix by backtothefuture (551k points) | 756 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,632 questions
10,764 answers
510 comments
3 users