Development Environment for Java

Java Development Kit

  1. Visit Oracle’s Java Downloads site.

  2. Under the latest (JDK 23) JDK Development Kit xx.y.z downloads section, click on your platform (Linux, macOS, or Windows).

  3. Download the appropriate installer by clicking the appropriate link.

    • If running Windows, choose “x64 Installer”.

    • If running macOS, choose “ARM64 DMG Installer” if you have a Mac with an Apple Silicon processor. Otherwise, choose “x64 DMG Installer”.

  4. In order to download the installer you must accept the “Oracle Technology Network License Agreement for Oracle Java SE”. You are supposed to read it, but you can just check the box and click the download button

    JDK License
  5. Run the downloaded installer, leaving all options set to their default.

Eclipse IDE

  1. Visit the Eclise Foundation site.

  2. Click the “Download” button on the top right of the page.

  3. Click the “Download” button located beneath “Install your favorite desktop IDE packages”. Select “Download x86_64” if you are using Windows, or “AArch64” if you are using macOS.

  4. Click the Download button.

  5. Run the Installer.

  6. Choose “Eclipse IDE for Java Developers”.

Eclipse Installer
  1. (Recommended) Leave the location set to its default.

  2. Click Install.

  3. You will get a popup for Unsigned Content. Check “Remember choice” and click “Accept”

Eclipse allow Unsigned Content
  1. Click “Open in System Explorer”

    • If running Windows 10, create a shortcut to eclipse on your desktop if not already done
    • If running macOS, you can move the Eclipse application to the /Applications folder on your mac (or wherever you want)

Setting Up Eclipse

  1. Run the Eclipse IDE
Eclipse IDE Splash Screen
  1. Check the “Use this as the default and do not ask again” checkbox
Eclipse Workspace
  1. Click Launch, noting the location of the workspace eclipse-workspace under your account

  2. Click the “Create a Java project” link

Eclipse Create Project
  1. Name your project “Test”

  2. Click “Next”

  3. Uncheck “Create module-info.java file”

Eclipse Project Configuration
  1. Click “Don’t Create”
Eclipse Module Information
  1. Navigate to File > New > Class

    Eclipse Create Class
    • Enter a name for the class like Hello. It must always be UpperCamelCase (also called PascalCase)

    • Check the “public static void main(String[] args) option under”Which method stubs would you like to create?”

  2. Click Finish

  3. Add a println statement to the main method

  4. Click the Green “Play/Run” button

Eclipse Run File

Video

Dr. Hogg has graciously recorded a video for getting started in Eclipse and Autolab.