Since it is difficult to set various things, let's prepare an environment where you can touch java immediately by inserting eclipse for the time being.
For the download procedure of eclipse with the Japanese patch, refer to here. (By the way, it seems to be installed on mac) I have downloaded the "latest version" on this page, but it may not be stable, so I always include the previous version. This time I added photon </ font> </ b>. (As of June 2019)
Let's output "hello world" for the time being.
Open the downloaded eclipse.
Leave the default here and click
Start to start eclipse.
File> New> Java Project to bring up the project creation dialog.
When the dialog opens, enter
learnJava in the project name and click
The project created like this is displayed. Also, click the x button in the blue square to close the obstructive part.
Click the triangle on the left to open learnJava. Align the cursor on top of the src and click
When the dialog appears, change the package name to
sampleCode and click
Hover your cursor over the created package and click
When the dialog is displayed, check
Hello World, public static void main (String  args) in the name and click
The automatically generated code will appear, so please add the description as shown in the image below.
After adding, click the triangle to the right of the green button on the upper left and click
Run> Java Application.
A screen called console will appear and the words "hello world" will be output. It's sober, but this is a program ...
Next time, I will actually go programming for the first time.