Execution environment test after Java installation

final confirmation

After installation and version confirmation Create a folder with VSCord and test until you get the expected results Click here to build Java environment

Execution environment test

#Create a test directory
$ mkdir -p ~/java/test

#Move to directory
$ cd ~/java/test

#Create a test file
$ touch test.java

#Edit test file
$ vi test.java

//test.java

class Main {
  public static void main(String[] args) {
    String msg = "";
    msg += "Hello ";
    msg += "World!";
    System.out.println(msg);
  }
}
#Move to the created directory
$ cd ~/java/hello

Save as: wq

Execute

$ java test.java
Hello World

The execution environment test is cleared!

Recommended Posts

Execution environment test after Java installation
java installation
Primality test Java
Java installation jdk
[Java] Environment construction
Java environment construction
Java development environment
[Java] Build Java development environment on Ubuntu & check execution
Build an E2E test environment with Selenium (Java)
[Notepad ++] C language / Java compilation & execution environment construction
[Environment construction] Eclipse installation
RSpec test code execution
Java (eclipse) installation procedure
Java instruction execution statement
Java development environment memo
[Summary] Java environment preparation
Java Unit Test Library-Artery-Sample
java development environment construction
Parallel execution in Java
Pytorch execution environment with Docker
[Java] JUnit4 test case example
Java debug execution [for Java beginners]
Fastest Primality Test C # Java C ++
Java test code method collection
2018 Java Proficiency Test for Newcomers-Basics-
Java development environment (Mac, Eclipse)
JavaFX environment construction in Java 13
[Java] Spring AOP execution order
AtCoder Challenge Environment Construction (Java 8)
Java tips --Spring execution Summary
External process execution in Java
Java installation location for mac