Hello World! My first java program

tags: java  eclipse

IDEA installation

JDK: Java Development Kit (Development Tool Pack)

JRE: Java Runtime Envoironment (operating environment)

JVM: Java Virtual Machine (virtual machine)

Install

Install JDK

1. Download jdk8 and find the download address (

download link

(Online download needs to be clicked and consent agreement)

2. Download the corresponding version of the computer, x64

3. Double -click to install (change the installation path)

4. Configure environment variables

  • Settings -> Search-> Environment variables

  • System variables -> New

    Variable name: java_home

    Value value: installation path

  • Configure Path variable

    System variables -> PATH -> Double -click -> New

    %JAVA_HOME%\bin

    %JAVA_HOME%\jre\bin

  • Test whether JDK is successfully installed

    Open CMD-> Java-Version

Uninstalled

1. Delete the installation directory of Java

2. Delete java_home

3. Delete the directory of Java under PATH

4.java-version

Hellow World!

  1. new folder

  2. Modify the file name: .java

    public class hello{
        public static void main (String[] args){
            System.out.print("Hello World!");
        }
    }
    
    • java is sensitive
    • Please write in English
    • The file name and class name must be consistent
    • The code is ends and needs to be used:;

Intelligent Recommendation

My first C language program Hello World

My first C language program Hello World The declaration of integer variables is int, such as: Int a Single precision floating point declaration with float, such as Float B; Double-precision floating-p...

My first Go language program: Hello World

package main :Define the name, you must specify which package belongs to this file in the source file, such as: package main. Package main represents a separately executable program, each GO applicati...

Hello World, my first Sping program

I recently learned the SPING framework. SPING is a lightweight IOC (control reversal) and AOP (facing cut programming) framework. It will be very easy and convenient to use it to help my Java developm...

The first Java program: Hello world

The public class is the main class. The source file naming must be consistent with the main class. A source file can only have one main class. But there can be many other classes. For example, class A...

The first Java program Hello World

1. Program development step description Three steps in Java program development:Write, compile, run. 2. Write the Hello World source program 2.1 Create a new text file. The full file name is changed t...

More Recommendation

The first Java program, Hello World

Eclipse development File-> New-> Java Project, in the prompt box, enter the Project Name, such as Hello, then next, finnsh. Hello will appear in the directory project, as shown below Right-src, ...

The first Java program --Hello World

No matter what language to learn, write the first program should start from Hello World. Although only a few simple lines of code, but just learning Java as a rookie, when I see myself writing program...

The first java program "hello world!"

Hello World Create a new folder to store the code In the folder below to create a new suffix .java java files, such as HelloWorld.java [Note To open the display system extension] [Note to write code c...

[Java] The first program "Hello World"

** The first program "Hello World" **...

The first Java program: Hello World!

The first Java program: Hello World! Create a new folder to store the code Create a new java file The file extension is .java Hello.java [Note] The system may not display the suffix name, you need to ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top