1. Home
  2. Computing & Technology
  3. Java

Creating Your First Java Program

By , About.com Guide

8 of 9

Run the Program

Run the Program

Microsoft product screen shot(s) reprinted with permission from Microsoft Corporation.

All that’s left to do is run the program. In the terminal window type the command:

java HelloWorld

When you hit Enter, the program runs and you will see "Hello World!" written to the terminal window.

Well done. You’ve written your very first Java program!

Explore Java
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Java
  4. Getting Started
  5. Run the Program

©2009 About.com, a part of The New York Times Company.

All rights reserved.