Donwload & Install JDK

The Java Standard Edition Development Kit (JDK™) is a development environment for building applications, applets, and components using the Java programming language.

Go to JavaSE Download page; under Java Platform, Standard Edition. Click JDK DOWNLOAD; choose the package that suites your need and download.

The Eclipse IDE

For all platforms: Eclipse Download page

Just extract the download package and launch the Eclipse.

Hello world!

  • Launch Eclipse IDE
  • Select default work space
  • Go to File -> New -> Project… and create new Java project
  • Click Next.
  • Choose any name you want then click Finish.
  • Copy the code below; Select src folder of the project then paste the code from clipboard (CTRL + V).

Run the Program

Right click to the class select Run As -> Java Application.