How to install Java on MacOS Mojave: Direct Download link for Mac OS

How to install Java on MacOS Mojave: Direct Download link for Mac OS
0

This topic will present a very useful method to install Java on MacOS Mojave: Direct Download link for Mac OS. In fact, macOS doesn’t have Java installed by default. This is also the main reason why we need to download and install java manually. In this post, we will share with you the way to install Java in Terminal with very simple instruction.

Steps to install Java on macOS Mojave: install the latest version of Java

Step 1. First off, open Terminal on your mac and type

Java

Then press enter.

1(1)

If you receive a message in a popup window like this, it means java is not installed on your Mac yet.

Step 2. Now hit “More info”, this will lead you to Oracle official page or you can click here to direct download link of Java up-to-date version for your MacOS version.

2(1)

Step 3. Download the latest version and wait for the download to be completed. Next, follow the instruction step by step to install java on Mojave.

Delete Old Version of Java or Uninstall Java on MacOS Mojave

Step 1. First, we need to open Finder on Mac. To do so, head over top apple menu, GoGo to Folder.

Then enter below path

/Library/Internet Plug-ins/
Find and Delete “JavaAppletPlugin.plugin”
/Library/PreferencePanes/
Find and Delete “JavaControlPanel.prefPane”
~/Library/Application Support/Java/
Remove java folder, from this path.

Step 2. Next, empty the files in your Bin folder to delete Java.

Uninstall Java using a command line

Step1. To remove Java using a command line, you need to launch Terminal on your Mac and enter the commands below one by one:

sudo rm -rf “/Library/Internet Plug-Ins/JavaAppletPlugin.plugin”
sudo rm -rf “/Library/PreferencePanes/JavaControlPanel.prefPane”
sudo rm -rf “~/Library/Application Support/Java”

That’s pretty much it! Now you already manage how to install or remove Java on macOS Mojave. Hope that the explained instruction is helpful for you.