I did Java development in Eclipse. This is a memo of a sample program for beginners that only outputs Hello World. I am trying to develop SAP related, there are other than Eclipse and JDK at the time of installation, but I have recorded it in the following article.
--Installation of JDK: Building SAP system connection environment using JCo to PC that even Java beginners can do --Installation of Eclipse: JSP + Eclipse + Jetty development environment construction even for Java beginners
Right-click in Project Explorer and select New-> Project.
Select "Java Project".
Enter the item "Project name" and finish.
Change to Java Perspective (Eclipse screen display setting).
Right click on the "src" folder and select New-> Class.
Enter the package name and class name and finish.
Save with the following source code.
HelloWorld.java
package test00;
public class HelloWorld {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello, world");
}
}
If you run it from the menu Run-> Run, Hello World will be displayed on the console.
Recommended Posts