+5 votes
334 views
Uninstall JAVA on Linux

in Linux / Unix by (552k points)
reopened | 334 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 (552k points) | 177 views
+5 votes
1 answer
+3 votes
1 answer
asked Oct 27, 2020 in Windows 10 by backtothefuture (552k points) | 378 views
+3 votes
1 answer
asked May 8, 2021 in Linux / Unix by backtothefuture (552k points) | 351 views
+3 votes
1 answer
asked Nov 6, 2020 in Linux / Unix by backtothefuture (552k points) | 800 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users