java-development-for-beginners-learnit / 02 - Java Basics /004 Homework Solution .bat file creation_en.srt
Tan115's picture
Add files using upload-large-folder tool
7a5e661 verified
Raw
History Blame Contribute Delete
2.29 kB
1
00:00:05,000 --> 00:00:12,000
In the last and will review solution of your homework, you have a task to create that file to compile
2
00:00:12,000 --> 00:00:17,000
your hello world application and run it, let's review the solution for this homework.
3
00:00:17,000 --> 00:00:20,000
Here we have Hello World Application from previous lesson.
4
00:00:21,000 --> 00:00:22,000
Here is my bad file.
5
00:00:23,000 --> 00:00:24,000
Let me show you how it works.
6
00:00:25,000 --> 00:00:27,000
Let me open a common line here and run it.
7
00:00:31,000 --> 00:00:38,000
Here it is, you see that search code has been compiled and executed in command line, and he also noticed
8
00:00:38,000 --> 00:00:41,000
that after execution class file has been removed.
9
00:00:41,000 --> 00:00:44,000
Let's write the script together from scratch.
10
00:00:44,000 --> 00:00:48,000
Typed this not bad homework.
11
00:00:48,000 --> 00:00:49,000
Dot that.
12
00:00:51,000 --> 00:00:56,000
Our first comment would be echo of at echo of.
13
00:00:57,000 --> 00:01:04,000
Echoes a common to display message in standard output to prevent action, a particular comment in a
14
00:01:04,000 --> 00:01:08,000
batch file, we have to write an at sign in front of the comment.
15
00:01:08,000 --> 00:01:14,000
We want to prevent again of all comments in our file to see only Java application output.
16
00:01:15,000 --> 00:01:19,000
That's why I wrote at Echo of at the beginning of the file.
17
00:01:20,000 --> 00:01:22,000
Next comment will be familiar to you.
18
00:01:22,000 --> 00:01:28,000
It's Java Asterisk Dot Java asterisk.
19
00:01:28,000 --> 00:01:36,000
Here is metal symbol to describe all possible files that have Java extension next common java.
20
00:01:36,000 --> 00:01:37,000
Hello World.
21
00:01:37,000 --> 00:01:42,000
And at the end, let the lead class file to keep our director clean.
22
00:01:43,000 --> 00:01:47,000
Dell Asterisk Dot class asterisk.
23
00:01:47,000 --> 00:01:52,000
Here is a symbol to describe all possible files that have class extension.
24
00:01:53,000 --> 00:01:55,000
That said, let's save it.
25
00:01:56,000 --> 00:02:01,000
I press control plus s to save the file and let's run it from here.
26
00:02:02,000 --> 00:02:04,000
It works as expected.