Java development environment (Mac, Eclipse)


On Mac, in Eclipse This article is for those who want to develop Java.

For those who want to develop with VsCode (Visual Studio Code) instead of Eclipse Please refer to "Java Development Environment (Mac, Vs Code)" in Qiita.

Eclipse is an integrated development environment It is a tool that prepares the development environment of the program with this one.

I think many people are using this Eclipse as a Java development environment.

If you haven't installed Java yet "Install Java (Mac, Homebrew, multiple version control)" Please complete the installation first by referring to.

My environment that I confirmed the operation is as follows.

OS: macOS Catalina(Version 10.15.4)
Java: 11.0.2

Install eclipse

If you have already installed it, please skip it.

It is a set with a Japanese localization plug-in attached to the main body of Eclipse. Use Pleiades.

Download the latest version from Pleiades Site.


Next, a screen for selecting Windows or Mac, Full or Starndard, which language is displayed, so Choose the Mac Full Edition for Java. MacでJava用をダウンロード.png

Once the dmg file is downloaded, run it. Then, the following screen will be displayed, so Drop the icon into the Applications folder. dmgを起動した画面.png アプリケーションフォルダにコピー中.png アプリケーションフォルダ.png

Start Eclipse

Launch the app file copied to the application folder. (Select Open from right-click menu)


The workspace specifies where to put the created program. Specify a location of your choice and press the launch button at the bottom right to launch Eclipse.

Creating a Java project

Once Eclipse starts Click the "Create Java Project" link in the Package Explorer on the left. eclipse起動後の画面.png

The screen for creating a new Java project will be displayed. Enter the project name, Check the Java version and Press the Finish button. 新規_Java_プロジェクト.png

When the create pop-up appears Press the "Do not create" button (I will not create this time) モジュールは作成しない.png

Creating a new Java class file

Once you have a project From the right-click menu of the src folder in Package Explorer Select Create new class. クラスの作成.png

When the new Java class creation pop-up appears Enter a name and Check "public static void main (String [] args), Press the Finish button. Javaクラス新規作成ポップアップ.png

Implement Java code

Implement the following code in main () of

    String msg = "";
    msg += "Hello "
    msg += "World!";

I intentionally forgot to write the semicolon. The error is displayed immediately. ソース実装&エラー.png

Fill in the semicolon and save, Press the debug run button (worm icon) to run it. When the debug configuration pop-up appears, Double-click the Java application from the left menu Press the debug button when it looks like the picture below. デバッグ実行ボタン押下.png

デバッグ構成.png helloworld出力された.png

Set a breakpoint and move

Double-click on the left edge of the 7th line A blue circle, which is a proof of a breakpoint, is displayed. ブレークポイントを貼って青丸.png

If you debug again in this state, the process will stop at the 7th line. When the confirmation pop-up for switching perspectives appears, press the switch button. ブレークポイントで止まった状態.png

When you press the step over button (F6) You can move forward in the line. ステップオーバーですすむ1.png

in conclusion

How was the Java development environment construction using Eclipse on Mac?

Buttons such as Step Over and Step In when debugging I think the watch expression, call stack, breakpoints, etc. are the same as those used in other IDEs (Integrated Environments). I think that a lot of information about this area will come out if you google with "debug execution" etc., so I will omit it here.


Recommended Posts

Java development environment (Mac, Eclipse)
Java development environment
[Eclipse Java] Development environment setting memo
Build Java development environment (for Mac)
Java development environment (Mac, VS Code)
Install Java development environment on Mac
Java development environment memo
Java development environment construction memo on Mac
Build a Java development environment on Mac
java development environment construction
[ev3 × Java] leJOS development environment construction (Eclipse on Mac OSX / bluetooth)
Rails6 development environment construction [Mac]
First Java development in Eclipse
Create a Java development environment using jenv on Mac
Build Java development environment with VS Code on Mac
Prepare Java development environment with Atom
Play Framework 2.6 (Java) development environment creation
[OpenCV3.2.0] Eclipse (Java) settings (for Mac)
About the current development environment (Java 8)
Build jooby development environment with Eclipse
About Eclipse environment (Java, Liberty, JavaScript)
[Java & SpringBoot] Environment Construction for Mac
Eclipse installation and code completion enhancements (Mac for Java development)
Java development environment construction (Mac + Pleiades All in One Eclipse 4.7 + Spring Boot + Gradle (Buildship))
Java development training
Prepare Java development environment with VS Code
[Processing x Java] Construction of development environment
[Java development] Java memory
Laravel development environment construction with Docker (Mac)
[Java] Environment construction
Java environment construction
If you want to change the Java development environment from Eclipse
Let's create a Java development environment (updating)
Play Framework 2.6 (Java) environment construction in Eclipse
Build Java 8 development environment on AWS Cloud9
Spring Boot + Docker Java development environment construction
Download and install Eclipse (Java) (Mac version)
Convenient plugin for Eclipse JAVA development: Decompiler
Run jooby's Eclipse development environment on Gradle
[Personal memo] Java development environment is ready
Java application development environment created in VM environment
JSP + Eclipse + Jetty development environment construction that even Java beginners can do
Creating a java web application development environment with docker for mac part1
Create a java web application development environment with docker for mac part2
Summary of Java environment settings for myself [mac]
[Java] Build Java development environment on Ubuntu & check execution
[Mac / Java / Eclipse / PostgreSQL] Connect Java application and database
Allow development in Eclipse environment using iPLAss SDK
Ruby on Rails development environment construction on M1 Mac
Build a development environment for Docker, java, vscode
Points stuck in building VSCode & Java development environment
[Beginner] Install java development tool in cloud9 development environment.
Build a Java development environment with VS Code
[Environment construction] Eclipse installation
Java (eclipse) installation procedure
Eclipse ~ Java project creation ~
Install Java on Mac
[Summary] Java environment preparation
Mac Java Home Directory
Java development link summary
[Development] Java framework comparison