Open source and free since the 90’s.
This article contains note on my personal experience installing and using Eclipse IDE.
Eclipse was originally funded by IBM as open source.
The editions of Eclipse IDE:
- The “Standard” edition for working with Java is free
- The edition working with Web (HTML) is licensed (costs money)
- STS edition
Standard Edition Homebrew install
First, update the Homebrew installation bits shared:
This can take a while.
Use cask to install GUI programs:
brew cask install eclipse-java
The response (as of 24 July 2017):
==> Satisfying dependencies ==> Downloading https://www.eclipse.org/downloads/download.php?file=/technology/ ######################################################################## 100.0% ==> Verifying checksum for Cask eclipse-java ==> Installing Cask eclipse-java ==> Moving App 'Eclipse.app' to '/Applications/Eclipse Java.app'. 🍺 eclipse-java was successfully installed!
Remember the name of the app is “Eclipse Java”.
On a Mac, in a Finder click Go > Applications or click the “rocket ship” icon if you have that at the bar at bottom of the screen.
Type the portion of “Eclipse Java” until the icon appears.
In a Standard Eclipse, you can add STS in
- Help > Eclipse Marketplace and Find: Spring.
- Click Install.
In Confirm Selected Features, check all (for AOP, AERI, Roo, etc.) explained later.
The nice thing about using Homebrew is uninstallation is easy:
brew cask uninstall eclipse-java
STS install on Macs
There is no Homebrew module for the Spring Tools Suite (STS) for Mac.
- Use a modern internet browser to the STS download page at
Click on “Based on Eclipse 4.7.0”, then “tar.gz”.
spring-tool-suite-3.9.0.RELEASE-e4.7.0-macosx-cocoa-x86_64.tar is 412.5 MB.
- In Finder, select the Download folder to receive the file, then click “Save”.
- While you’re waiting, switch to exit the download web page.
Double click on the file to unzip it to a new folder.
CAUTION: If you see a number to the right of the “sts-bundle” folder name, another installer was downloaded previously.
- In Finder, navigate inside the “sts-bundle” folder.
- Open a new Finder new window and click the Go menu for the /Applications folder.
If there is another STS app there, move it to Trash.
- Long-Click on the STS app file, then drag and drop it onto the Applications window.
- Open STS by double-clicking the icon. It may take a minute to load the first time.
- Press command+tab until your land on the green Spring app icon for the Eclipse Launcher.
- Check “Use this as the default and do not ask again”.
PROTIP: The default directory generated should be changed per your organization’s standards.
PROTIP: This folder path is where you should do git clone. The one I use is
/Users/mac/gits/spring. Others define a “dev” folder
This can be changed to something else later (in Files, Switch Workspace).
The folder path is created when you click “Launch”.
For the menu, click on the white space in the Dashboard with Package Explorer.
Included with STS (Spring Tools Suite) is the developer edition of Pivotal tc Server, the drop-in replacement for Apache Tomcat that’s optimized for Spring.
The Spring Insight console, tc Server Developer Edition, provides a graphical real-time view of application performance metrics that lets developers identify and diagnose problems from their desktops.
First Time Preferences
When you invoke Eclipse for the first time, you see a “Welcome” screen.
At the lower-right of the screen, uncheck “Always show Welcome at start up”.
Click “Review IDE configuration settings” to “Review the IDE’s most fiercely contested preferences”.
- Show line numbers in editor: yes.
- Check spelling
- Execute jobs in background
- Encode text files with UTF-8
- Enable preference recorder
Check “Always exit without prompt” (your call).
Click “Open an existing file”.
Compile from Eclipse
To compile and run your program, keep the “Main” app Java file tab active and
- use Run option available in the Eclipse IDE or
- press Ctrl + F11 to compile and run your MainApp application.
If everything is fine with your application, this will print the following message in Eclipse IDE’s console.
Right-click on the blank part under “Project Explorer” to select “New” and “Other”.
In the New Select a Wizard dialog, select “Java Project”, then “Next”.
Type your Project Name.
It’s best to leave the default JRE version because additional downloads are necessary if you want to change it.
Check “Remember” then click “Yes” to associate the project with a perspective.
Notice several JRE System Libraries were added automatically. .jar files are Java classes. .dll files are Windows classes.
Notice the “src” folder is created to hold source code.
Right-click the app name to select Package (test suite).
Name it “Basics”.
Right-click on “Basics”.
Type the Name for Java Class, such as “helloworld”.
Perspectives define the size and location of different views on the workspace window.
Right-click on the Perspectives icon at the upper-right corner and select “Show Text”.
- Click the icon to the right of the Perspective icon to open a list of perspectives.
- Click Cancel
EclEmma - Java Code Coverage for Eclipse
There are a lot on YouTube:
- Introduction to Eclipse: Driving Java Productivity from 2012 by Marakana
Pluralsight.com has a two-part series on Eclipse from 2013 by Tod Gentille (@Tod Gentille) of syncorsystems.com:
To go back to previous edit location: Control+Q