[Java] Hello Java in Eclipse now Hello World

1 minute read


For beginners Just display the Java Hello World in Eclipse.

Eclipse won’t make much difference in any version, This article is about Photon from Eclipse 2018


Open “new” “java project” of “file” 1.png

Enter only the project name appropriately. It was Test1. 2.png

Open “new” “package” in src of created project 3.png

Enter an appropriate name. It was Test1. 4.png

Open a new “class” in the created package 5.png

Enter an appropriate name. It was Test1. (In Java, the class name should start with an uppercase letter) The syntax will be generated automatically, so check “public ~ args”. 6.png

Put the description to output HelloWorld in the created class.


To add 7.png

Execute 8.png

OK when “Hello World” is displayed on the bottom left console. 9.png


Image is Workspace> Project> Package> Class The workspace is the location of the folder where the whole exists, and can be changed from “File”-“Switch Workspace”. As you can see, it holds Eclipse settings etc., so if you change it, the settings etc. will return to the initial settings.

The project is a group of programs. A package is a collection of Java classes. Class is class.. Since java cannot be executed as it is, when it is executed with Eclipse, it builds and executes it automatically.