Skip to content

Commit 1ec098d

Browse files
committed
improve images, minor text fixes
1 parent 47d2735 commit 1ec098d

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed
-22.1 KB
Loading
-2.31 KB
Loading
3.38 KB
Loading
30 KB
Loading
-95.8 KB
Binary file not shown.

app/pages/learn/01_tutorial/01_your-first-java-app/03_writing-java-applications-with-eclipse.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ subheader_select: tutorials
99
main_css_id: learn
1010
toc:
1111
- Introduction and Installation {intro}
12-
- creating Java projects {creating}
12+
- Creating Java projects {creating}
1313
- Content Assist {content_assist}
1414
- Dealing with compilation errors and warnings {errors}
1515
- Running a program {run}
@@ -35,10 +35,10 @@ Upon selecting a workspace, it will show a Welcome screen presenting you with mu
3535
This article will show you how to create Java projects manually so you can close the welcome-screen by clicking on the `Hide` button on the top right of the Welcome tab.
3636

3737
<a id="creating">&nbsp;</a>
38-
## creating Java projects
38+
## Creating Java projects
3939

4040
After installing Eclipse, you should have an empty workspace. In order to create a new Java project, click on the `File`-toolbar on the top left corner of the Eclipse window and select `New` > `Java Project`.
41-
[![`File` > `New` > `Java Project`](/assets/images/eclipse/file_create_project.png)](/assets/images/eclipse/file_create_project.png)
41+
[![File > New > Java Project](/assets/images/eclipse/file_create_project.png)](/assets/images/eclipse/file_create_project.png)
4242

4343
This will then open up a dialog that allows configuring information about the project. You will need to enter a name next to `Project name:` at the top. For example, you can choose the name `HelloWorld`. In the `Module` section at the bottom, disable the option `Create module-info.java file`. If necessary, it is possible to configure a custom Java installation in the `JRE` box.
4444
[![Java project creation dialog](/assets/images/eclipse/create_java_project.gif)](/assets/images/eclipse/create_java_project.gif)
@@ -85,27 +85,26 @@ In order to run a Java application, you first need to have a class with a `main`
8585
[![Run As > Java application in the editor](/assets/images/eclipse/run_as_editor.png)](/assets/images/eclipse/run_as_editor.png)
8686
[![Run As > Java application in the editor](/assets/images/eclipse/run_as_package_explorer.png)](/assets/images/eclipse/run_as_package_explorer.png)
8787

88-
Alternatively, you can run the application using the Run [![Run button](/assets/images/eclipse/run_button.png)](/assets/images/eclipse/run_button.png) in the toolbar. [![Run button in toolbar](/assets/images/eclipse/run_buttons_toolbar.png)](/assets/images/eclipse/run_buttons_toolbar.png)
88+
Alternatively, you can run the application using the Run [![Run button](/assets/images/eclipse/run_button.png)](/assets/images/eclipse/run_button.png) button in the toolbar. [![Run button in toolbar](/assets/images/eclipse/run_buttons_toolbar.png)](/assets/images/eclipse/run_buttons_toolbar.png)
8989

9090
When running the program, Eclipse should show the output of the program in the `Console` view.
9191
[![Program with output in console](/assets/images/eclipse/console_output.png)](/assets/images/eclipse/console_output.png)
9292

93-
9493
<a id="debugging">&nbsp;</a>
9594
## Debugging in Eclipse
9695

9796
When a program doesn't do what you expect it to do, you might want to debug it. The process of debugging is explained in [this article](/learn/debugging). Eclipse provides a lot of functionality making it easy to debug Java applications.
9897

99-
In order to debug an application, you need to set a breakpoint. When the execution hits that breakpoint the program will temporarily stop ("suspend") and allow you to inspect its current state and step through the program. To set a breakpoint, you need to double-click on the area to the left of the line you want to stop execution at. After doing that, a blue dot should appear there.
98+
In order to debug an application, you need to set a breakpoint. When the execution hits that breakpoint, the program will temporarily stop ("suspend"), allow you to inspect its current state and step through the program. To set a breakpoint, you need to double-click on the area to the left of the line you want to stop execution at. After doing that, a blue dot should appear there.
10099
[![A breakpoint next to source code](/assets/images/eclipse/breakpoint.png)](/assets/images/eclipse/breakpoint.png)
101100

102-
When running a program normally, the program will ignore all breakpoints. For debugging, you need to run the program in debug mode. This can be done by clicking on the green button with the bug icon next to the run button or using `Debug As` > `Java Application`.
103-
[![The debug button next to run buttons](/assets/images/eclipse/debug_button.png)](/assets/images/eclipse/debug_button.png)
101+
When running a program normally, it will ignore all breakpoints. For debugging, you need to run the program in debug mode. This can be done by clicking on the green button with the bug icon [![The debug button](/assets/images/eclipse/debug_button.png)](/assets/images/eclipse/debug_button.png) next to the run button or using `Debug As` > `Java Application`.
102+
[![The debug button next to run buttons](/assets/images/eclipse/debug_button_in_toolbar.png)](/assets/images/eclipse/debug_button_in_toolbar.png)
104103

105104
When the execution hits a breakpoint in debug mode, Eclipse will ask you to switch to the Debug perspective. This perspective gives you more information about the program you are currently debugging so you likely want to do this and click on the `Switch` button.
106105
[![Eclipse asking to switch to the Debug perspective](/assets/images/eclipse/debug_perspective_switch.png)](/assets/images/eclipse/debug_perspective_switch.png)
107106

108-
Upon opening the debug perspective, you should still see your code in the middle. However, there should be one line with a green background. This indicates the next line the program would execute. On the right side, you should see a `Variables` view containing a list of variables and their current values.
107+
Upon opening the debug perspective, you should still see your code in the middle. However, there should be one line with a green background next to the breakpoint. This indicates the next line the program would execute. On the right side, you should see a `Variables` view containing a list of variables and their current values.
109108
[![The debug perspective](/assets/images/eclipse/debug_perspective.png)](/assets/images/eclipse/debug_perspective.png)
110109

111110
While the program is suspended, you can tell it how to continue executing using buttons in the toolbar at the top.

0 commit comments

Comments
 (0)