1. Home
  2. Computing & Technology
  3. Java

Creating Your First Java Program

By Paul Leahy, About.com

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

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

Easy ways to connect two computers for networking purposes. 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.