October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk2 min

Create a Java Project in Eclipse: A Step-by-Step Setup Guide

Use Eclipse’s Java Project wizard to create a project, select a compatible JRE and folder layout, and optionally configure the build path before finishing.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To create a Java project in Eclipse, choose File > New > Project…, select Java Project, name the project, choose its JRE and folder layout, then select Finish. If you want to set up the build path before creating it, select Next instead.

Create the project

  1. In Eclipse, open File > New > Project….
  2. Select Java Project in the wizard and proceed to the Java Project wizard. Eclipse describes this wizard as the tool for creating a Java project in the workbench (Eclipse Foundation: New Java Project Wizard).
  3. Enter a project name. By default, Eclipse creates the project in the current workspace. You can choose another location, or point the wizard at an existing Java project location; take care to select the intended folder.
  4. Choose the JRE configuration and project layout, as described below.
  5. Select Finish to create the project immediately. Select Next first if you want to configure its build path before finishing. The wizard’s first page can finish without opening that optional page.

For the official walkthrough of the basic process, see Creating Your First Java Project.

As an Amazon Associate I earn from qualifying purchases.

Choose the JRE configuration

The wizard lets you use the workspace default JRE, select a JRE specifically for the project, or choose an execution environment. Pick a runtime compatible with the Java version your code needs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Choice What it means When it helps
Workspace default JRE Uses the JRE configured as the default for the workspace. Use it when the workspace default is suitable for this project.
Project-specific JRE Explicitly selects a JRE for this project. Use it when this project needs a different installed runtime from the workspace default.
Execution environment Specifies a Java environment rather than a developer-specific filesystem path; Eclipse maps the environment to an installed JRE. Useful for shared projects, where relying on one developer’s local JRE path can make the build path less portable.

If the runtime you need is not available in the wizard, open Eclipse preferences and go to Java > Installed JREs to manage JRE definitions. See the Installed JREs Preferences documentation. An execution environment still needs to be mapped to an installed JRE.

Choose the project folder layout

Eclipse’s default layout separates source files from compiled class files. The documented build-path preference uses src for source files and bin for output. Keeping the two apart makes it easier to distinguish the Java code you edit from generated files.

The alternative uses the project folder as both the source and output location. Choose it if you specifically want a single-root layout; otherwise, the separate-folder default keeps source and generated output organized.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

When should you configure the build path first?

For a straightforward new project, selecting Finish on the first wizard page is enough. If you need to adjust the project’s build path as part of setup, select Next to open the build-path page, make the required changes, and then finish creating the project. Eclipse documents the build-path controls in its Java Project wizard help.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.