• EXPLORE Coupons Tech Help Pro Random Article About Us Quizzes Contribute Train Your Brain Game Improve Your English Popular Categories Arts and Entertainment Artwork Books Movies Computers and Electronics Computers Phone Skills Technology Hacks Health Men's Health Mental Health Women's Health Relationships Dating Love Relationship Issues Hobbies and Crafts Crafts Drawing Games Education & Communication Communication Skills Personal Development Studying Personal Care and Style Fashion Hair Care Personal Hygiene Youth Personal Care School Stuff Dating All Categories Arts and Entertainment Finance and Business Home and Garden Relationship Quizzes Cars & Other Vehicles Food and Entertaining Personal Care and Style Sports and Fitness Computers and Electronics Health Pets and Animals Travel Education & Communication Hobbies and Crafts Philosophy and Religion Work World Family Life Holidays and Traditions Relationships Youth
  • HELP US Support wikiHow Community Dashboard Write an Article Request a New Article More Ideas...
  • EDIT Edit this Article
  • PRO Courses Guides New Tech Help Pro Expert Videos About wikiHow Pro Coupons Quizzes Upgrade Sign In
  • Browse Articles
  • Learn Something New
  • Train Your Brain
  • Improve Your English
  • Explore More
  • Support wikiHow
  • About wikiHow
  • H&M Coupons
  • Hotwire Promo Codes
  • StubHub Discount Codes
  • Ashley Furniture Coupons
  • Blue Nile Promo Codes
  • NordVPN Coupons
  • Samsung Promo Codes
  • Chewy Promo Codes
  • Ulta Coupons
  • Vistaprint Promo Codes
  • Shutterfly Promo Codes
  • DoorDash Promo Codes
  • Office Depot Coupons
  • adidas Promo Codes
  • Home Depot Coupons
  • DSW Coupons
  • Bed Bath and Beyond Coupons
  • Lowe's Coupons
  • Surfshark Coupons
  • Nordstrom Coupons
  • Walmart Promo Codes
  • Dick's Sporting Goods Coupons
  • Fanatics Coupons
  • Edible Arrangements Coupons
  • eBay Coupons
  • Log in / Sign up
  • Computers and Electronics
  • Programming

How to Create a New Java Project in Eclipse

Last Updated: March 7, 2022

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 16 people, some anonymous, worked to edit and improve it over time. This article has been viewed 324,305 times. Learn more...

Eclipse is one of the most popular development environments for Java, as it contains everything you need to build a Java project from scratch. Before you can start working on your new project, you'll need to create it first. Creating a new Java project in Eclipse is fairly straightforward, but can be confusing if you've already installed Eclipse for a different programming language.

Image titled Create a New Java Project in Eclipse Step 1

Image titled Create a New Java Project in Eclipse Step 2

Image titled Create a New Java Project in Eclipse Step 3

Community Q&A

Community Answer

Video . By using this service, some information may be shared with YouTube.

how to java project in eclipse

You Might Also Like

Write Your First Program in Java

About This Article

Is this article up to date?

Am I a Narcissist or an Empath Quiz

Featured Articles

Celebrate LGBT Pride Month As a Straight Person

Trending Articles

When Should You Double Down in Blackjack?

Watch Articles

Tie Dye Shoes

Keep up with tech in just 5 minutes a week!

Related Articles

How to Create Jar File for Java Project in Eclipse?

Java programmers already know about what is a jar file if you are new then first understand what is a jar file. Once you are completed your project in Eclipse the next task is to create a runnable version of your project. Eclipse support only exporting the JAR (.jar) file, not the Executable (.exe) file. It is very important to learn as a Java programmer as it is the most used tool. This article will teach you how to create a JAR file and then an Executable file with a JAR file. 

Steps to Create a JAR file in Eclipse

A JAR (Java Archive) file is a ZIP format file that bundles Java classes into a single unit, it contains all the resources needed by Java applications as well. There are two types of the JAR file in Java 

project structure

Step by Step Implementation

Step 1: Refresh your project – First right click on your project and click on Refresh. This step ensures your code is up to date.

Step 2: Right-click your project and click on Export. An Export window box will appear on the screen. 

Step 3: Expand the “Java” folder and select the “Runnable JAR file” then click on the Next button.

Step 4: A new window box will appear on the screen. First, have to select the main class of a project that indicates where your program begins and contains the main method.  Click on the drop-down menu under  “Launch configuration” to select the main file. 

Step 5: After that select the destination of the runnable JAR file. Click on Browse. Select the folder you want to save the JAR file to. Type a name for the JAR file next to “Filename”. then click on the Save button. Path for Runnable JAR file 

Step 6: Make sure the “Extract required libraries into generated JAR” radio button is selected. Do not worry about the rest of the menu. Click on Finish Button. Your Java project is exported as a JAR file.

Note: If you have warnings in your project then you will get one dialog box at the end, Click on the Ok button simply. 

Steps to Create a Batch file in Eclipse

Creating a batch file to automate repetitive tasks is easy, once you know how. The batch script is a simple text file that is used to run different commands in sequence. It can automate and convert a Java Project into something anyone could operate.

Step 1: Create a text file, such as a Notepad or WordPad document where you have created the JAR file.

Step 2: Add command

Step 3: Save your file with the file extension BAT, for example, run.bat.

Step 4: To run your batch file, double-click the BAT file you just created. 

Note: To edit your batch file, right-click the BAT file and select Edit. 

Please Login to comment...

how to java project in eclipse

Master Java Programming - Complete Beginner to Advanced

how to java project in eclipse

Complete Interview Preparation - Self Paced

how to java project in eclipse

Mastering System Design: From Low-Level to High-Level Solutions

Improve your coding skills with practice.


Eclipse IDE

Eclipse JKube™ logo.

Eclipse JKube™

Cloud-Native Java Applications without a hassle

Monthly downloads: N/A

Latest release: 1.12.0

Eclipse Cargo Tracker™ logo.

Eclipse Cargo Tracker™

Eclipse Cargo Tracker™demonstrates how you can develop applications with the Jakarta EE platform using widely adopted architectural best practices like Domain-Driven Design (DDD).

Latest release: 2.2 (Jakarta EE 8)

Eclipse Yasson™ logo.

Eclipse Yasson™

Eclipse Yasson™ is a Java framework which provides a standard binding layer between Java classes and JSON documents. This is similar to what JAXB is doing in the XML world.

Latest release: 3.0.0

Eclipse EclEmma logo.

Eclipse EclEmma

Eclipse EclEmma is a Java code coverage tool for the Eclipse IDE.

It brings code coverage analysis directly into the Eclipse IDE workbench:

Latest release: 3.1.7

Eclipse Golo™ logo.

Eclipse Golo™

Eclipse Golo™ is a dynamically-typed programming language for the Java Virtual Machine.

Latest release: 3.4.0

Eclipse Leshan™ logo.

Eclipse Leshan™

Eclipse  Leshan ™ is an OMA Lightweight M2M (LWM2M) implementation in Java.

Latest release: 1.3.0

Eclipse Andmore logo.

Eclipse Andmore

The project develops and maintains technologies for creating Android applications. This ranges from creating new Eclipse components and updating existing components that support Android development to a downloadable package that can be used for new developers and students. The project will maintain parity with current development trends in phones, tablets, smart watches, smart TVs, embedded Android, and future directions for Android development.

Latest release: 0.5.1

Eclipse Scout™ logo.

Eclipse Scout™

Eclipse Scout™ is a one-stop framework with straight concepts, a strong application model and a versatile UI. It enables you to develop professional software in Java or TypeScript.

Latest release: 23.1

Java Guides

Java Guides

Search this blog.

Check out my 10+ Udemy bestseller courses and discount coupons: Udemy Courses - Ramesh Fadatare

How to Convert Java Project to Maven Project in Eclipse

Tools and technologies used.

Create a Java project

how to java project in eclipse

Convert this Java Project to Maven Project

how to java project in eclipse

Free Spring Boot Tutorial | Full In-depth Course | Learn Spring Boot in 10 Hours

Watch this course on YouTube at Spring Boot Tutorial | Fee 10 Hours Full Course

Copyright © 2018 - 2025 Java Guides All rights reversed | Privacy Policy | Contact | About Me | YouTube | GitHub


  1. Eclipse Java Tutorial

    how to java project in eclipse

  2. how to create java project in eclipse

    how to java project in eclipse

  3. Java project structure best practice in Eclipse

    how to java project in eclipse

  4. Creating Your First Java Eclipse Project

    how to java project in eclipse

  5. Creating Java Application With Eclipse

    how to java project in eclipse

  6. Create Java project in Eclipse

    how to java project in eclipse


  1. [TUTORIAL] Eclipse: Exporting Java Projects Properly

  2. How to run first Java Program in Eclipse

  3. Currency Converter using Java Eclipse

  4. Java Crud Application Step by Step

  5. Run Java swing desktop project using eclipse with database

  6. How to Copy paste Project in eclipse dynamic web project |online learning tech |usman rana


  1. How to Create Jar File for Java Project in Eclipse?

    Once you are completed your project in Eclipse the next task is to create a runnable version of your project. Eclipse support only exporting the JAR (.jar) file, not the Executable (.exe) file

  2. Convert Java Project to Web Project in Eclipse

    By default, Eclipse will generate all “web” related files (like WEB-INF, web.xml) in a “WebContent” folder. Done, the Java project is converted to web application project, see the globe icon on top of the project

  3. java

    Step 1: Open Eclipse and click File > New > Java Project. Step 2: Provide the Project Name and click on the Finish button

  4. How to Convert Java Project to Maven Project in Eclipse

    Let's first create plain Java Project in Eclipse IDE. In New Java Project dialog, provide the project name as "JavaDemoProject" and click on. So now we have created plain Java Project, next step is to convert to maven project