[Java] Environment construction

Purpose#

From now on, I want to build an environment to prepare a Java learning environment at home.

Task#

Write code using the Atom editor. I want to compile and display the character string Hello Java.

Record

68747470733a2f2f71696974612d696d6167652d73746f72652e73332e616d617a6f6e6177732e636f6d2f302f3235333833322f66306237393237382d373632372d373930642d336263302d3665333934363564636334642e706e67.png The image is a compiled image, but I got various errors.

1. After writing the code with the Atom editor, save the file "HelloJava.java".

2. Start command prompt

3. 3. Enter "javac Hello Java.java"

image.png

Error

Apparently, you can't find it unless you enter something that looks like an address. After checking various things, ...

** cd ** It seems that you need to enter the directory name (like an address) first.

4. Type "cd". Drag the "Hello Java.java" file, delete the file name behind it, and press ENTER!

image.png

Oh! Something has changed.

5. Enter "javac HelloJava.java" and compile.

image.png

68747470733a2f2f71696974612d696d6167652d73746f72652e73332e616d617a6f6e6177732e636f6d2f302f3235333833322f30636236666334632d363633312d353432332d363065362d3535633064633330393236312e706e67.png

A file called HelloJava.class has been created in the folder.

6. When I typed java HelloJava, it was displayed as HelloJava.

image.png

I typed "iava" in the image due to a typo.

Summary

・ I was able to code, compile, and output.

・ I was able to build an environment.

Recommended Posts

[Java] Environment construction
Java environment construction
java development environment construction
JavaFX environment construction in Java 13
AtCoder Challenge Environment Construction (Java 8)
Java development environment
[Spring] Environment construction
[Java & SpringBoot] Environment Construction for Mac
Docker environment construction
Java development environment construction memo on Mac
Play Framework 2.6 (Java) environment construction in Eclipse
Spring Boot + Docker Java development environment construction
Minimal Java environment construction and Hello World
Penronse environment construction [Windows]
[Flutter] Ubuntu 20.04 environment construction
Java development environment memo
[Summary] Java environment preparation
Rails Docker environment construction
Circle CI environment construction
Road to Java Engineer Part1 Introduction & Environment Construction
JAVA + STS (Spring Tool Suite) environment construction procedure
[Notepad ++] C language / Java compilation & execution environment construction
[Spring Boot] Environment construction (macOS)
Rails engineer environment construction ruby2.7.1
EC-CUBE4 environment construction (local edition)
I tried node-jt400 (Environment construction)
Java development environment construction on Mac-JDK Install (2020 preservation version)
Rails environment construction Rails5.2.1 ruby2.5.1 Catalina
[Mac] VS Code development environment construction (Java, Gradle, Node.js)
MySQL 5.7 (Docker) environment construction memo
Introduction to Metabase ~ Environment Construction ~
Java development environment (Mac, Eclipse)
Redmine (Docker) environment construction memo
Java
[Java] Environment construction procedure for developing struts 1.3 with Eclipse
[Docker] Rails 5.2 environment construction with docker
Offline environment construction Ruby edition
Docker × Spring Boot environment construction
[Super easy] Ruby environment construction
[Rails / MySQL] Mac environment construction
[Environment construction] Build a Java development environment with VS Code!
Java
[Docker] postgres, pgadmin4 environment construction
Laravel environment construction (Ubuntu 18.04 LTS)
React environment construction with Docker
Offline environment construction CentOS edition
Java + Spring development environment construction with VirtualBox + Ubuntu (Xfce4)
[LeJOS] Let's program mindstorm-EV3 in Java [Environment construction first part]
Web application development environment construction in Java (for inexperienced people)
Java web application development environment construction with VS Code (struts2)
Create a Java and JavaScript team development environment (gradle environment construction)
[Java development environment construction] Install OpenJDK 11 (Java 11) on macOS with Homebrew.
Rails + MySQL environment construction with Docker
[Windows] WSL2 + Ubuntu + Node.js environment construction
Node.js environment construction with Docker Compose
[Eclipse Java] Development environment setting memo
Execution environment test after Java installation
Environment construction for Servlet application development
Environment construction with Docker for beginners
Ruby environment construction summary ~ mac version ~
Java Spring environment in vs Code