Skip to content

Commit bdb4ad7

Browse files
authored
Update 01_getting-started-with-java.md
Incorporated suggestions from review by danthe1st
1 parent 8e1709c commit bdb4ad7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/pages/learn/01_tutorial/01_your-first-java-app/01_getting-started-with-java.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ You can give this class any name as long as it does not start with a number. The
7474

7575
If you are following this example to the letter, you should save the `MyFirstClass` class in a text file called `MyFirstClass.java`.
7676

77-
Just a word of warning: you should be using a plain text editor to create and save this file. Using a word processor like Microsoft Word or Google Docs will not work.
77+
Just a word of warning: you should be using a plain text editor to create and save this file. Using a word processor will not work.
7878

7979
<a id="first-compilation">&nbsp;</a>
8080
## Preparing the Compilation of your First Class
@@ -94,7 +94,7 @@ You may also have heard about J2EE, Java EE or Jakarta EE. All these acronyms re
9494
<a id="setting-up-jdk">&nbsp;</a>
9595
## Setting up a Java Development Kit
9696

97-
You can download the JDK from different places. There is a one-stop page that always refers to the latest version of the JDK: https://jdk.java.net/. Selecting a JDK version listed under the label, "Ready for use" redirects you to a page where you can download the version of the JDK you need.
97+
You can download the JDK from different places. There is a one-stop page that always refers to the latest version of the JDK: https://jdk.java.net/. Selecting a JDK version listed under the label "Ready for use" redirects you to a page where you can download the version of the JDK you need.
9898

9999
From this page you can download four versions:
100100

@@ -265,9 +265,9 @@ All the commands you will be typing now should be typed in the same prompt as th
265265

266266
### Compiling and Running Your First Java Program
267267

268-
The following instructions are the same regardless of if you followed the the Windows, the Linux or the macOS path.
268+
The following instructions are the same regardless of if you followed the Windows, the Linux or the macOS path.
269269

270-
1. Change to the directory where you saved your first class, `MyFirstClass.java`. You can check that you are in the right directory by typing `dir` (for Windows) `ls` (for macOS or Linux). This command will list the files you have in this directory. You should see your `MyFirstClass.java` file in that list.
270+
1. Change to the directory where you saved your first class, `MyFirstClass.java`. You can check that you are in the right directory by typing `dir` (on Windows) or `ls` (on macOS or Linux). This command will list the files you have in this directory. You should see your `MyFirstClass.java` file in that list.
271271
2. Check that your compiler is accessible from this directory by typing this command (it should work whether you are on Windows or Linux):
272272

273273
```shell
@@ -364,7 +364,7 @@ javac: Command not found
364364
365365
If you receive this error, UNIX cannot find the compiler, [`javac`](doc:javac).
366366
367-
Here's one way to tell UNIX where to find `javac`. Suppose you installed the JDK in `/usr/local/jdk19`. At the prompt, type the following command and press \<Return\>:
367+
Here's one way to tell UNIX where to find `javac`. Suppose you installed the JDK in `/usr/local/jdk19`. At the prompt, type the following command and press \<Enter\>:
368368
369369
```shell
370370
/usr/local/jdk19/javac HelloWorldApp.java
@@ -426,7 +426,7 @@ One of the places where `java` tries to find your `.class` file is your current
426426
cd c:\java
427427
```
428428
429-
The prompt should change to `C:\java>`. If you enter `dir` at the prompt, you should see your `.java` and `.class` files. Now enter `java HelloWorldApp` and press \<Return\> again.
429+
The prompt should change to `C:\java>`. If you enter `dir` at the prompt, you should see your `.java` and `.class` files. Now enter `java HelloWorldApp` and press \<Enter\> again.
430430
431431
If you still have problems, you might have to change your `CLASSPATH` variable. To see if this is necessary, try clobbering the classpath with the following command.
432432
@@ -456,7 +456,7 @@ Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp
456456
457457
If you receive this error, `java` cannot find your bytecode file, `HelloWorldApp.class`.
458458
459-
One of the places where `java` tries to find your bytecode file is your current directory. So, for example, if your bytecode file is in `/home/jdoe/java`, you should change your current directory to that. To change your directory, type the following command at the prompt and press \<Return\>:
459+
One of the places where `java` tries to find your bytecode file is your current directory. So, for example, if your bytecode file is in `/home/jdoe/java`, you should change your current directory to that. To change your directory, type the following command at the prompt and press \<Enter\>:
460460
461461
```shell
462462
cd /home/jdoe/java
@@ -496,7 +496,7 @@ This first Java program showed you the basic steps every Java developer follows
496496
497497
Developers that work on large applications do not use plain text editors to manage their source code; they use Integrated Development Environments, or "IDEs". IDEs are complex software applications, specialized in software development. These applications handle the compilation of your source code automatically, help you track errors in the syntax of your Java code and nail down bugs in its execution, among other things.
498498
499-
Some of these tools are open-source and free to use.
499+
Some of these tools are open source and free to use.
500500
501501
- [`the Eclipse foundation maintains Eclipse`](doc:ide-eclipse),
502502
- [`the Apache foundation maintains NetBeans`](doc:ide-netbeans),

0 commit comments

Comments
 (0)