Dear Friends,
In this tutorial we will see how to setup Eclipse on Mac machine to run Java programs.So here are the steps :
My Operating System : OS X EI Capitan
Step 1: Download latest stable version of Eclipse,which is Eclipse Mars from following link
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/mars/2/eclipse-jee-mars-2-macosx-cocoa-x86_64.tar.gz
Note : You can download the earlier versions also.Below is the link which has hyperlinks to all eclipse versions
http://www.eclipse.org/downloads/packages/
Step 3: Now we need to install JDK.The latest version is JDK 1.8.
Step 3.1: Download JDK 1.8 from below link
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
We need to download jdk-8u91-macosx-x64.dmg from below options for Mac.
Step 3.2: After downloading/saving jdk-8u91-macosx-x64.dmg file on system,we need to install JDK,for that double click on jdk-8u91-macosx-x64.dmg and we will see following screen
Step 3.3: As mentioned in above screen shot double click on the icon and we will get following screen
Step 6: Close welcome screen and create a new Java Project by selecting File->New-> Project.. ->Java Project. Give any name to project for example FirstMacProject and click Finish.
Step 7: You will get following screen
Step 8: Create a package with name "in.blogspot.javaSolutionsGuide" and create a class with name "MyFirstMacClass".Add sysout with "Hello Mac" message in it.
Step 9: Right Click on java file and select Run as -> Java Application
Step 10: You will see output "Hello Mac" on console
So with this we learnt how to setup Eclipse to run Java program on Mac machine.
Thanks for reading !!!
In this tutorial we will see how to setup Eclipse on Mac machine to run Java programs.So here are the steps :
My Operating System : OS X EI Capitan
Step 1: Download latest stable version of Eclipse,which is Eclipse Mars from following link
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/mars/2/eclipse-jee-mars-2-macosx-cocoa-x86_64.tar.gz
Note : You can download the earlier versions also.Below is the link which has hyperlinks to all eclipse versions
http://www.eclipse.org/downloads/packages/
Step 2: Unzip the downloaded file and we will see the eclipse application Icon placed at the same location where we downloaded the eclipse tar.gz file.
Step 3: Now we need to install JDK.The latest version is JDK 1.8.
Step 3.1: Download JDK 1.8 from below link
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
We need to download jdk-8u91-macosx-x64.dmg from below options for Mac.
Step 3.2: After downloading/saving jdk-8u91-macosx-x64.dmg file on system,we need to install JDK,for that double click on jdk-8u91-macosx-x64.dmg and we will see following screen
Step 3.3: As mentioned in above screen shot double click on the icon and we will get following screen
Step 3.4: Click on Continue and we will see following screen
Step 3.5: Click on Install and your installation will be done automatically and finally we will get following screen with success message
Step 4: Now open your Eclipse by double clicking on eclipse icon that got created after extraction of.tar.gz file and give the location wherever you want to create workspace and click ok.
Step 5: You will get following screen.
Step 7: You will get following screen
Step 8: Create a package with name "in.blogspot.javaSolutionsGuide" and create a class with name "MyFirstMacClass".Add sysout with "Hello Mac" message in it.
Step 9: Right Click on java file and select Run as -> Java Application
Step 10: You will see output "Hello Mac" on console
So with this we learnt how to setup Eclipse to run Java program on Mac machine.
Thanks for reading !!!