Java Programming Tutorial 2: Creating a New Project

Every program that you make needs to be in a new “Project.”

  1. Open eclipse.exe
  2. From the “File” menu, select “New\Java Project”
  3. Enter the name of your program into the “Project name” box (ex. “Hello World”)
  4. Click “Finish”

Congratulations, you made a project for your first program!  Now you need to create a file to write your Java code in.

  1. Find your project In the “Package Explorer”
  2. Click on the “+” next to your project to expand it
  3. Right-click on the “src” item, and then select “New\Class” from the drop-down menu
  4. Enter the name of the file that you want to make (ex. “Program”) in the “Name” box
  5. If this is the main file for your program, check the box next to “public static void main(String[] args)”
  6. Click “Finish”

Now you’re ready to start programming!

Leave a Comment