This page tells you how to download and install Java 8 and Eclipse on Mac OS X, and how to configure Eclipse.
- Liberica JDK provides Long term Support for all of its open source builds that act as alternatives for Java application development toolkits. The Liberica OpenJDK package with the HotSpot Virtual Machine viably replaces the Java 8 (LTS), 9, 10, 11 (LTS), 12, 13, 14, 15.
- 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'. There can be multiple JDKs installed on a system, as many as you wish.
- Download Java for Mac OS X - Apple vetted Java environment, designed to be as highly integrated as possible within its own operating system and to improve security, reliability, and performance. 528,484 downloads Updated: October 27, 2017 Freeware. Review Free Download.
Installing Java 8
Java 8 mac free download - Java SE Development Kit 8, Java Update for Mac OS X 10.3.9, Apple Java for OS X 10.6, and many more programs. Java 8 mac free download - Java Update for Mac OS X 10.3.9, Apple Java for OS X 10.6, Mac Video Downloader, and many more programs.
- 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!
I want to do some programming with the latest JavaFX, which requires Java 8. I’m using IntelliJ 13 CE and Mac OS X 9 Mavericks. I ran Oracle’s Java 8 installer, and the files look like they ended up at
but previous versions are at
Not sure why the latest installer puts this in
/Library
instead of /System/Library
(nor what the difference is). But /usr/libexec/java_home
doesn’t find 1.8, so all the posts I’ve found on how to set your current java version don’t work. I’ve tried adding a symbolic link to make it look like 1.8 is in the /System/Library..
path, but it doesn’t help. /usr/libexec/java_home -V
still only lists the old java 1.6.Ironically, the “Java” control panel under System Preferences shows only java 1.8!
Why doesn’t Oracle’s installer put it where it really goes? And how can I work around this problem?
Answers:
Don’t rely on Oracle to install Java properly on your Mac.
Use Homebrew:
If you want to manage multiple versions of Java on your Mac, consider using jenv.
Answers:
For El Capitan and Sierra
Install brew:
then update and install Java:
Answers:
An option that I am starting to really like for running applications on my local computer is to use Docker. You can simply run your application within the official JDK container – meaning that you don’t have to worry about getting everything set up on your local machine (or worry about running multiple different versions of the JDK for different apps etc)
Although this might not help you with your current installation issues, it is a solution which means you can side-step the minefield of issues related with trying to get Java running correctly on your dev machine!
The benefits are:
- No need to set up any version of Java on your local machine (you’ll just run Java within a container which you pull from Docker Hub)
- Very easy to switch to different versions of Java by simply changing the tag on the container.
- Project dependencies are installed within the container – so if you mess up your config you can simply nuke the container and start again.
A very simple example:
Create a
Dockerfile
:- Here we are specifying the Java container running version 8 of the SDK (
java:8
– to use Java 7, you could just specify:java:7
) - We are mapping the local directory with the directory:
/usr/src/myapp
inside the container
Download Java For Mac Os X
Create a
docker-compose.yml
file:Now, assume we have this Java file:
Mac ftp client free download windows 10. Download FileZilla Client 3.50.0 for Mac OS X. The latest stable version of FileZilla Client is 3.50.0. Please select the file appropriate for your platform below.
HelloWorld.java
So we have the following file structure:
You can do various Java things like:
compile:
- You should note that the HelloWorld.class shows up in your current directory (this is cause we’ve mapped the current directory to the location inside the container where our code exists
run:
- Note: the first time you run this it will fetch the image etc. This will take a while – it only happens the first time
docker-compose run
– runs a command from within the container-rm
tells docker to remove the container once the command is finished runningjava
is the name of the service/container (from our docker-compose file) against which this command will run- the rest of the line is the command to run inside the container.
This is quite a cool way of dealing with running different versions of Java for different apps without making a complete mess of your local setup :).
Here is a slightly more complex example which has Maven and a simple Spring app
Disclaimer:
- I haven’t really tried this within an IDE like IntelliJ – so not entirely sure how that aspect of things would work. Though it looks like docker support is coming
- Here is a significantly more complex example running Microservices with Spring Boot, Zuul and Docker
Answers:
I just did this on my MBP, and had to use
in order to get java8 to install.
Answers:
I have applications that use both Java 7 and 8 and have to go back and forth all the time.
I use this script written by Johan:
You can now set it at startup or call the script afterwards.
Install the JDK for Mac.
Install the JDK for Mac.
Java 7
Java 8
Answers:
I’m having the same problem to solve, because I need to install JDK8 to run Android SDK Manager (because it seems that don’t work well with JDK9).
However, I tell you how I solve all problems on a Mac (Sierra).
However, I tell you how I solve all problems on a Mac (Sierra).
First, you need brew with cask and jenv.
- You can find an useful guide here,Homebrew Cask Installation Guide.
Remember to tap ‘caskroom/versions’ running in the terminal:brew tap caskroom/versions
- After that, install jenv with:
brew install jenv
- Install whatever version you want with cask
brew cask install java8
(orjava7
orjava
if you want to install the latest version, jdk9) - The last step is to configure which version to run (and let jenv to manage your JAVA_HOME)
jenv versions
to list all versions installed on your machine and then activate the one you want withjenv global [JDK_NAME_OF_LIST]
![Download Download](/uploads/1/2/6/6/126695259/167010902.png)
You could find other useful informations here on this Github Gist brew-java-and-jenv.md, on this blog Install multiple JDK on a Mac and on Jenv Website
Answers:
Questions:
Easiest way –
P.S – What is brew-cask ? Homebrew-Cask extends Homebrew , and solves the hassle of executing an extra command – “To install, drag this icon…” after installing a Application using Homebrew.
Answers:
Below steps worked for me.
1) Uninstall all jdks
In the Terminal window Copy and Paste the command below:
2) Install APPLE jdk.
3) Download latest JDK from Oracle and install it , for me it was JDK 1.82
Thats all it will work like a charm.
Answers:
I also had the same problem. But after little hit and trial, I was able to resolve the issue.
Try removing 1.6 sdk by sudo rm and restart your mac.
Download again the .dmg file. Chances are that the .dmg installer you downloaded, might be corrupt. Install again.
Run following command after installation. It gives path for jdk 8.
/usr/libexec/java_home -v 1.8
/usr/libexec/java_home -v 1.8
Also you can run and see jdk 8 folder. The files may be hidden.
ls -al /Library/Java/JavaVirtualMachines/
ls -al /Library/Java/JavaVirtualMachines/
Download Java Jre 8 Mac Os
Tags: java