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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
1
00:00:05,000 --> 00:00:11,000
Today, we have a very important topic without this knowledge, you won't be able to proceed with this

2
00:00:11,000 --> 00:00:17,000
training course because to be able to program in Java, you need to have judical installed on your computer

3
00:00:17,000 --> 00:00:24,000
and we will learn which education to choose and how to make sure that Java is properly installed on

4
00:00:24,000 --> 00:00:25,000
your computer.

5
00:00:26,000 --> 00:00:29,000
The latest version based on today is Java version 13.

6
00:00:29,000 --> 00:00:31,000
Oracle has six months release.

7
00:00:31,000 --> 00:00:36,000
And so from now on, new version of Java will be released each six months.

8
00:00:36,000 --> 00:00:40,000
Does that mean for you that you need to learn Java each six months?

9
00:00:40,000 --> 00:00:43,000
Not necessarily that the developers.

10
00:00:43,000 --> 00:00:44,000
This can be quite overwhelming.

11
00:00:45,000 --> 00:00:50,000
How many applications do have to go back and to update now on how many servers in your data center are

12
00:00:50,000 --> 00:00:54,000
constantly needed to be updated to the newest Java release?

13
00:00:54,000 --> 00:00:56,000
There are two things developers hate.

14
00:00:56,000 --> 00:00:59,000
One of them is a necessary change.

15
00:00:59,000 --> 00:01:05,000
It is even crazy to think about keeping several applications or several number of servers up to date

16
00:01:05,000 --> 00:01:06,000
with the news release.

17
00:01:07,000 --> 00:01:14,000
That is why the concept of an Altius was established, and Java LTE, which stands for long term support

18
00:01:14,000 --> 00:01:20,000
release, is a version of Java that will remain the industry standard for several years.

19
00:01:20,000 --> 00:01:27,000
To give you an example of this, Java eight was released in 2014 and it's extended support will end

20
00:01:27,000 --> 00:01:28,000
by December 20th.

21
00:01:28,000 --> 00:01:32,000
Sergius, probably Java eight, is the most popular nowadays.

22
00:01:32,000 --> 00:01:38,000
A lot of companies still rely on it and there is no urgent need to upgrade to the newest Java version.

23
00:01:39,000 --> 00:01:45,000
Java Eleven is the latest long term support version based on today for educational purposes.

24
00:01:45,000 --> 00:01:51,000
I would recommend you to use the latest version of Open JDK, which will allow you to use the most recent

25
00:01:51,000 --> 00:01:52,000
and up to date version.

26
00:01:52,000 --> 00:01:58,000
And to be completely honest, between version eight and version sitting, there is no dramatic difference

27
00:01:58,000 --> 00:02:01,000
which will be noticed by junior developers.

28
00:02:01,000 --> 00:02:05,000
There are some of them and we will learn them during the training course.

29
00:02:05,000 --> 00:02:10,000
You will also notice that you have Oracle Jaedicke and open jaedicke available for you for the cloud.

30
00:02:11,000 --> 00:02:16,000
Probably main difference for you right now is that open the case completely free, including commercial

31
00:02:16,000 --> 00:02:17,000
use.

32
00:02:17,000 --> 00:02:20,000
Oracle JDK is not free for commercial use.

33
00:02:21,000 --> 00:02:23,000
There are also some other differences.

34
00:02:23,000 --> 00:02:28,000
For example, when it comes to performance, Oracle is much better regarding the responsiveness and

35
00:02:28,000 --> 00:02:29,000
Jovian performance.

36
00:02:30,000 --> 00:02:36,000
Oracle, the case fully developed by Oracle Corporation, whereas the ticket is developed by Oracle

37
00:02:36,000 --> 00:02:38,000
and the Java community get together.

38
00:02:38,000 --> 00:02:41,000
So I recommend you to use open JDK.

39
00:02:41,000 --> 00:02:46,000
This will allow you to learn Java platform and to implement powerful applications.

40
00:02:46,000 --> 00:02:50,000
Now let me show you how to install the key on the computer from scratch.

41
00:02:51,000 --> 00:02:54,000
Go to Google and search for duplicate Java Net.

42
00:02:58,000 --> 00:02:59,000
Let's open this link.

43
00:03:01,000 --> 00:03:02,000
Select 13.

44
00:03:03,000 --> 00:03:06,000
Download these archives for Windows or Mac, respectively.

45
00:03:07,000 --> 00:03:09,000
I'm downloading this one.

46
00:03:10,000 --> 00:03:12,000
Now, extract archive.

47
00:03:15,000 --> 00:03:17,000
Let's have a look what is in here.

48
00:03:19,000 --> 00:03:25,000
So here we have been folder, you can find in it all tools and programs which we need to create our

49
00:03:25,000 --> 00:03:26,000
Java applications.

50
00:03:27,000 --> 00:03:29,000
For example, here you can see Java Javadoc.

51
00:03:29,000 --> 00:03:35,000
This is Java Compiler, which compiled our source code, our files written with letters to bytecode.

52
00:03:36,000 --> 00:03:40,000
Here's Javadoc application to generate documentation from our source code.

53
00:03:41,000 --> 00:03:44,000
In the next lessons, I will show you how it works.

54
00:03:44,000 --> 00:03:47,000
Here is Java application to run Java Virtual Machine.

55
00:03:48,000 --> 00:03:49,000
Our next steps.

56
00:03:49,000 --> 00:03:56,000
Please open a common line in this directory to do this type systemd right here and press enter.

57
00:03:57,000 --> 00:03:58,000
So here's our common line.

58
00:03:59,000 --> 00:04:02,000
Type Gever Dash version.

59
00:04:03,000 --> 00:04:08,000
And press enter now you'll see that you have opened the key version 13 here.

60
00:04:09,000 --> 00:04:15,000
And this is completely fine, but try to navigate one level up in your file system, try the city government,

61
00:04:15,000 --> 00:04:17,000
also known as change directory.

62
00:04:17,000 --> 00:04:23,000
It is a common line share common used to change the current work in the rectory in the various operating

63
00:04:23,000 --> 00:04:24,000
systems.

64
00:04:24,000 --> 00:04:34,000
The first single dot operator means this directory is a double dot or pyrates means the parent directory

65
00:04:34,000 --> 00:04:42,000
the next one and the tree lets type Sidis, Nebel, Dot and press enter go ahead and times the same

66
00:04:42,000 --> 00:04:44,000
Java version common here.

67
00:04:45,000 --> 00:04:48,000
Java is not recognized as an internal or external command.

68
00:04:49,000 --> 00:04:50,000
Why do we see this?

69
00:04:50,000 --> 00:04:56,000
Because from this level we can't get access to Java program, which is located in Benfold.

70
00:04:57,000 --> 00:05:03,000
As a software engineer, I want to be able to call Java and Java compiler on my machine from any place

71
00:05:03,000 --> 00:05:04,000
in my file system.

72
00:05:04,000 --> 00:05:08,000
To do this, I need to configure environment variables.

73
00:05:08,000 --> 00:05:13,000
Now I will show you how to configure environment variables on Windows machine.

74
00:05:13,000 --> 00:05:17,000
If you have Mac, please take a look to resources attached to this lesson.

75
00:05:18,000 --> 00:05:22,000
I have special written guide for you do mouse right.

76
00:05:22,000 --> 00:05:29,000
Click on my computer open properties, go to advanced system settings and one wearables.

77
00:05:29,000 --> 00:05:31,000
And here we are now.

78
00:05:31,000 --> 00:05:33,000
Even despite this, it's not necessary.

79
00:05:33,000 --> 00:05:36,000
The rule of thumb is to create Java home variable.

80
00:05:36,000 --> 00:05:40,000
First, this variable will refer to the Jaedicke home folder.

81
00:05:41,000 --> 00:05:46,000
You can have multiple Java home variables to be able easily change our home version on your machine

82
00:05:46,000 --> 00:05:50,000
like I have here for Java versions eight, 11 and 13.

83
00:05:51,000 --> 00:05:54,000
Let's create this variable press new button here.

84
00:05:55,000 --> 00:05:57,000
Java underscore home.

85
00:06:02,000 --> 00:06:04,000
And let's hope is this past.

86
00:06:05,000 --> 00:06:07,000
And paste it as a variable value.

87
00:06:08,000 --> 00:06:09,000
Press a button.

88
00:06:09,000 --> 00:06:11,000
Now we have Java home here.

89
00:06:12,000 --> 00:06:15,000
Next thing to know is that Windows has bars Werrimull.

90
00:06:16,000 --> 00:06:17,000
Let's find it.

91
00:06:18,000 --> 00:06:24,000
Here, this bus is an environment variable specifying a set of directories where executable programs

92
00:06:24,000 --> 00:06:32,000
are located in general, each executing process or user session has its own path setting without past

93
00:06:32,000 --> 00:06:35,000
variable, we would need to run programs, use an absolute pass.

94
00:06:36,000 --> 00:06:42,000
The pass variable prevents us from having to write the entire past to a program that suggests value

95
00:06:42,000 --> 00:06:42,000
here.

96
00:06:43,000 --> 00:06:46,000
Can you type person sign?

97
00:06:47,000 --> 00:06:48,000
You have a home.

98
00:06:49,000 --> 00:06:55,000
Percent saying file past separator and windows, that is backslash and bin.

99
00:06:56,000 --> 00:07:02,000
That said, in case you have previous Windows version, most likely you see something like this.

100
00:07:03,000 --> 00:07:06,000
Make sure that line ends with semicolon and write the same.

101
00:07:11,000 --> 00:07:18,000
So you can choose one option or another, it's up to you and now attention, if you had the terminal

102
00:07:18,000 --> 00:07:22,000
opened, closed and opened again to apply all changes.

103
00:07:25,000 --> 00:07:27,000
Let's again, open terminal here.

104
00:07:29,000 --> 00:07:31,000
Let's go one level up.

105
00:07:32,000 --> 00:07:35,000
Now, let's dive the same Java version comment.

106
00:07:36,000 --> 00:07:37,000
Here we are now.

107
00:07:37,000 --> 00:07:40,000
We can run Java program from any directory.

108
00:07:41,000 --> 00:07:45,000
Let's also check version of compiler called Java Version.

109
00:07:46,000 --> 00:07:47,000
Here it is.

110
00:07:47,000 --> 00:07:52,000
If you see version number, then everything is OK and we are good to proceed with the next lesson.

111
00:07:53,000 --> 00:07:55,000
Let's summarize what we have learned on this lesson.

112
00:07:56,000 --> 00:07:58,000
We learned how to choose JDK version.

113
00:07:58,000 --> 00:08:01,000
What is the difference between Oracle Adjudicate and OpenEdge?

114
00:08:01,000 --> 00:08:06,000
The key, how to install duplicate on your computer and how to configure environment variables.

115
00:08:07,000 --> 00:08:09,000
Let's now review your homework for the next lesson.

116
00:08:10,000 --> 00:08:15,000
So for the next lesson, you just need to repeat everything, what we have discussed during this lesson

117
00:08:15,000 --> 00:08:17,000
and make sure you have JDK installed.