This page tells you how to download and install Java 8 and Eclipse on Mac OS X, and how to configure Eclipse.
Filename: jre-8u271-macosx-x64.dmg. MD5 Checksum: 2042fe74985449d5d53890b18e00c4d6. Details: Java Runtime Environment for Mac 2020 full offline installer setup for Mac. The screen shots and instructions below are for Java 8 Update 65 (8u65). If you are installing another version, make sure you change the version number appropriately. Example: For Java 8 Update 65 (8u65) the file to download is jre-8u65-macosx-x64.pkg. Install Java on Mac. Download the jre-8u65-macosx-x64.pkg file. Review and agree to the terms of the license agreement before downloading the file. Double-click the.pkg file to launch it; Double-click on the package icon to launch install Wizard. Download the jre-8u65-macosx-x64.pkg file. Review and agree to the terms of the license agreement before downloading the file. Double-click the.pkg file to launch it; Double-click on the package icon to launch install Wizard. Jun 29, 2017 The best approach to install Java on the Mac is to get the latest version of Java JRE directly from Oracle.
Installing Java 8
Go to the Oracle website. You'll see something like this:
Scroll down until you see a heading beginning 'Java SE 8u65/8u66.' On the right, you'll see a Download button under the JDK header. Click it. The next screen will look like this:
Click the radio button next to 'Accept License Agreement' and then click on jdk-8u65-macosx-x64.dmg. You'll be asked whether to save the file that is going to be downloaded; click on Save File.
Open your Downloads folder, and double-click on jdk-8u65-macosx-x64.dmg. You'll see this window:
Double-click on the package icon, and follow the instructions to install. When the installation has completed, click on Done. At this point, you may close up the window and drag jdk-8u65-macosx-x64.dmg to the Trash.
Installing Eclipse
If you already have Eclipse installed on your Mac, you need to get rid of it. To do so, first quit Eclipse if you're currently running it. Then, go to your workspace folder (probably in Documents/workspace) and save anything there that you want to keep, because you're about to get rid of this folder. Next, drag the workspace folder to the Trash.
Go to your Applications folder. One way to get there is, from the Finder, type command-shift-A. You'll a folder named eclipse in there; drag the eclipse folder to the Trash. If you have an Eclipse icon in your dock, remove it from the dock.
Now you're ready to download and install the newest version of Eclipse. Go to this website. You'll see a window like this:
Scroll down until you see 'Eclipse IDE for Java Developers' and click where it says 64 bit under Mac OS X.
You will see this window:
Click on the yellow download button. If asked, click on 'Open with Archive Utility (default)' and then click OK. The download might take a few minutes. You should not feel compelled to donate.
After the download completes, folders should automatically expand. If they don't, double-click on the .tar file. When that's done, you should see a folder named eclipse in your Downloads folder. When you open your Downloads folder, if you see Applications under the Favorites on the left side of the window, you should drag the eclipse folder into Applications. If you don't see Applications, then open a new window for Applications (from the Finder, command-shift-A), and drag the eclipse folder into Applications.
Open your Applications folder, and then open the eclipse folder. You'll see an item named Eclipse; if you like, drag its icon into the dock so that you'll be able to launch Eclipse easily.
Launch Eclipse. If you're asked whether you want to open it, of course you do; click Open. You'll see a window like this:
It will have your user name rather than mine (scot). Select where you want your workspace to be; I recommend the default of your Documents folder. Click the checkbox for using this location as the default, and then click OK.
You'll see a window like this:
Click on the Workbench arrow in the upper right that I've circled. You shouldn't see this screen again, even if you quit Eclipse and relaunch it.
You'll get an empty workbench like this:
We won't be using the 'Task List' and 'Connect Mylyn' windows. Click the 'x' on each to close it. Press the mouse on the Window menu item, then choose 'Perspective', and finally choose 'Save Perspective as...'. Enter 'cs10' for the name of this perspective and press return. Your workbench will now look like this:
You have now installed Eclipse!
Configuring Eclipse
You don't have to configure Eclipse the way I do, but you'll probably avoid some confusion if you do. Here's how.
In the Eclipse menu bar, click on the Eclipse menu and then on 'Preferences...'. You'll see a window with two panes. On the left pane is a list of types of things you can configure.
Click on the triangle to the left of General. Then click on the triangle to the left of Appearance. Then click on 'Colors and Fonts.' You should see a window like this:
In the window in the middle, click on the triangle next to Java. Then double-click on 'Java Editor Text Font':
You'll see this window:
On the right, where you can select the size, click 12. Then close this window by clicking on the window's close button.
Close up the General preferences by clicking on the triangle to the left of General. Click the triangle next to Java and then click the triangle next to 'Code Style.' Then click Formatter. Here's what you should see:
Click the button that says 'New...'. You'll see a window such as this one:
You can type in any profile name you like. I used 'CS 10':
Click OK.
You should see a window like this:
Change the tab size to 2:
You'll see that the indentation size automatically changes as well.
Click on 'Blank Lines,' and after 'Between import groups' and 'Before declarations of the same kind,' change the values 1 to 0:
Click on 'Control Statements,' and check the first four boxes as I've done here:
Click OK.
Now click on triangles to close up Java. Click on the triangle next to Run/Debug, and then click on Console:
Click on the green color sample next to 'Standard In text color.' You'll get a color picker:
Slide the slider on the right down, so that you get a dark green. (You're at Dartmouth. What other color could you possibly want?)
Close the color picker window by clicking its close button, and click OK again to close the Preferences window.
And you're done!
This page describes how to install and uninstall JRE 8 on OS X computers.
Note: The JRE installation includes the JavaFX Runtime which is incorporated into the same directory structure. |
This page has these topics:
See 'JDK 8 and JRE 8 Installation Start Here' for general information about installing JDK 8 and JRE 8.
See 'OS X Platform Install FAQ' for general information about installing JRE 8 on OS X.
System Requirements
Observe these requirements:
Any Intel-based computer running OS X 10.8 (Mountain Lion) or later.
Administrator privileges.
Note that installing the JRE on OS X is performed on a system-wide basis, for all users, and administrator privileges are required. You cannot install Java for a single user.
Only one JRE can be installed at a time. The system will not install a JRE that has a lower version than the current version. If you wish to install a lower version of the JRE, uninstall the current version as described in 'Uninstalling the JRE'.
Download The Jre 8u65 Mac Os X X64 Pkg Filehippo
Installing a JRE from Oracle will not update java -version
symlinks or add java
to your path. To be able to do this, you need to install the JDK.
JRE Downloaded File
Depending on your processor, the downloaded file has one of the following names, where version
is the update number:
jre-8u
version
-macosx-amd64.dmg
jre-8u
version
-macosx-x64.dmg
Installing JRE 8u40
If you are installing JRE 8u40, then follow these steps:
Download the file.
Before the file can be downloaded, you must accept the license agreement.
From either the Downloads window of the browser, or from the file browser, double click the file
.dmg
to launch it.A Finder window appears containing an icon of an open box and the name of the
.app
file.Double click the package icon to launch the Install app.
A window appears that says, 'Java 8 Update 40 is trying to install a new helper tool. Type your password to allow this.'
Enter the Administrator login name and password and then click Install Helper.
The Install app then displays the Introduction window.
Click Next.
Oracle has partnered with companies that offer various products. The installer may present you with the option to install these programs when you install Java. Specify if you want these programs installed and then click Next.
Note:
You can disable the presentation of offers during installation by specifying the--args SPONSORS=0
option in the terminal command line. For example:open /Volumes/Java 8 Update 40/Java 8 Update 40.app --args SPONSORS=0
An Installation Progress window is displayed. Once the software is installed, a confirmation window appears and then an applet is launched to verify the version of Java installed.
Delete the
.dmg
file if you want to save disk space.
Determining the Installed Version of the JRE
If you have not yet installed Apple's Java OS X 2012-006 update, then you are still using a version of Apple Java 6 that includes the plug-in and the Java Preferences app. See 'Note for Users of OS X that Include Apple Java 6 Plug-in'.
Only one JRE can be installed. Installing a JRE removes the previously installed JRE. The JRE version used by the system can be determined in one of two ways:
From System Preferences click the Java icon from the Other category. This launches the Java Control Panel. Click About.
Type the following in a Terminal window (note escaped space character, ignore line break):
Download The Jre-8u65-macosx-x64.pkg File For Mac
The system will not install a JRE that has a lower version than the current version. If you want to install a lower version, first uninstall the existing version.
Uninstalling the JRE
To uninstall the JRE, you must have Administrator privileges and execute the remove commands either as root or by using the sudo(8) tool.
Remove one directory and one file (a symlink), as follows:
Download The Jre-8u65-macosx-x64.pkg File
Navigate to
/Library/Internet Plug-Ins
and remove theJavaAppletPlugin.plugin
directory.Navigate to /
Library/PreferencePanes
and removeJavaControlPanel.prefpane
.
Download The Jre 8u65 Mac Os X X64 Pkg Files
Download The Jre 8u65 Mac Os X X64 Pkg File Extension
Do not attempt to uninstall Java by removing the Java tools from /usr/bin
. This directory is part of the system software and any changes will be reset by Apple the next time you perform an update of the OS.