File size: 15,596 Bytes
7a5e661 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 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 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 | 1
00:00:06,000 --> 00:00:10,000
They will learn to which will help us create our amazing applications.
2
00:00:11,000 --> 00:00:14,000
I am talking about integrated development environment.
3
00:00:14,000 --> 00:00:20,000
Beside that, according to our agenda for today, we will learn what are most popular ideas for development
4
00:00:20,000 --> 00:00:26,000
of Java based applications will download Eclipse and we'll learn how to configure it.
5
00:00:27,000 --> 00:00:29,000
So what is integrated development environment?
6
00:00:30,000 --> 00:00:36,000
IDE is a software application that provides comprehensive facilities to computer programmers for software
7
00:00:36,000 --> 00:00:43,000
development, and they normally consist of at least a source code editor built automation tools and
8
00:00:43,000 --> 00:00:47,000
at the bargain, some ideas such as not being technically contained.
9
00:00:47,000 --> 00:00:53,000
The necessary compiler integrated development environments are designed to maximize programmer productivity,
10
00:00:54,000 --> 00:01:00,000
reduce and set up time can increase developer productivity, especially in cases where learning to use
11
00:01:00,000 --> 00:01:05,000
the idea is faster than manually integrating and learning all of the individual tools.
12
00:01:06,000 --> 00:01:14,000
The most popular ideas for Java development are Eclipse Intelligent Idea, not beans and Androids to
13
00:01:14,000 --> 00:01:15,000
live for Android projects.
14
00:01:16,000 --> 00:01:19,000
I've worked a lot with each of these, to be honest.
15
00:01:19,000 --> 00:01:21,000
I can conclude that that's similar.
16
00:01:21,000 --> 00:01:24,000
The only difference is the way how to configure your project.
17
00:01:25,000 --> 00:01:27,000
The same buttons located in different places.
18
00:01:27,000 --> 00:01:29,000
That would be my short answer.
19
00:01:29,000 --> 00:01:34,000
But still, my preferred option would be Eclipse for Java Enterprise Edition developers.
20
00:01:34,000 --> 00:01:35,000
Why?
21
00:01:35,000 --> 00:01:37,000
There are a few reasons.
22
00:01:37,000 --> 00:01:44,000
Some of them, it is completely free of charge, the same as that means you can find that idea.
23
00:01:44,000 --> 00:01:47,000
Community version is also free of charge.
24
00:01:47,000 --> 00:01:53,000
But later during the course you will notice that in communications there is a lack of support of Java
25
00:01:53,000 --> 00:02:00,000
Enterprise Edition and you would need either to buy license version of a year so-called AUTOMATE edition
26
00:02:00,000 --> 00:02:02,000
or looking for some workarounds.
27
00:02:03,000 --> 00:02:07,000
If you're a student, you can get ultimata, edition license free of charge.
28
00:02:07,000 --> 00:02:12,000
But again, it's free only for educational purposes, but not for commercial use.
29
00:02:12,000 --> 00:02:13,000
In many companies.
30
00:02:13,000 --> 00:02:20,000
Eclipse isn't standard software package for Java software engineers because it's powerful for creation
31
00:02:20,000 --> 00:02:25,000
of any kind of applications and it's free, huge community in the Internet.
32
00:02:25,000 --> 00:02:27,000
You will find a lot of support.
33
00:02:27,000 --> 00:02:32,000
How to deal with different configuration issues in case you have them in your project while working
34
00:02:32,000 --> 00:02:33,000
with Eclipse.
35
00:02:34,000 --> 00:02:40,000
You can easily extend your idea was extensions and plug ins, for example, you can add plugin which
36
00:02:40,000 --> 00:02:45,000
will check your code style, you can add plug in to test your passcode coverage.
37
00:02:45,000 --> 00:02:51,000
You cannot plug in, which will allow you to style icons, background and fonts in the eclipse.
38
00:02:51,000 --> 00:02:55,000
And much more Eclipse has tools to work with Java for Enterprise.
39
00:02:56,000 --> 00:02:59,000
This will come in handy later in this training program.
40
00:02:59,000 --> 00:03:03,000
Now lets together download and install Eclipse on your computer.
41
00:03:04,000 --> 00:03:10,000
We will configure your workspace and we'll create Hello World Java project in Eclipse and you will see
42
00:03:10,000 --> 00:03:12,000
how it makes our life easier.
43
00:03:13,000 --> 00:03:15,000
Let's make a Google search like this.
44
00:03:16,000 --> 00:03:19,000
Eclipse for Java Developers Download.
45
00:03:21,000 --> 00:03:22,000
Click on the first link.
46
00:03:23,000 --> 00:03:27,000
Here's a warning message which tell us that this is not the latest package.
47
00:03:28,000 --> 00:03:30,000
Let's take a look at the newest version.
48
00:03:31,000 --> 00:03:36,000
And here it is, the motorcade for Windows Linux on Mac.
49
00:03:38,000 --> 00:03:39,000
President Lord Martin.
50
00:03:43,000 --> 00:03:47,000
When we have downloaded the clips, extract old files wherever you want on your computer.
51
00:03:50,000 --> 00:03:51,000
Now start the clips.
52
00:03:54,000 --> 00:03:59,000
When you start the clips, you are asked to indicate a workspace directly, the workspace is a directory
53
00:03:59,000 --> 00:04:06,000
on the desk where the eclipse platform and all the installed plug ins or preferences, configurations
54
00:04:06,000 --> 00:04:12,000
and temporary information, subsequent clips and locations will use the storage to restore the previous
55
00:04:12,000 --> 00:04:12,000
state.
56
00:04:13,000 --> 00:04:18,000
Each time you start Eclipse, you can create a new workspace directory or indicate an existing one.
57
00:04:18,000 --> 00:04:23,000
You can create many workspaces, each one dedicated to some activity.
58
00:04:23,000 --> 00:04:27,000
For example, I want to create a workspace dedicated to this training course here.
59
00:04:28,000 --> 00:04:31,000
Let me call it your Nike fundamentals.
60
00:04:31,000 --> 00:04:33,000
Let's press the launch button now.
61
00:04:37,000 --> 00:04:38,000
Let's make it full screen.
62
00:04:39,000 --> 00:04:40,000
Here is a welcome page.
63
00:04:40,000 --> 00:04:46,000
Let's get directly to the park bench, just press here and here is your workspace.
64
00:04:47,000 --> 00:04:49,000
It comprises different objects and views.
65
00:04:50,000 --> 00:04:52,000
You can configure your workspace as you wish.
66
00:04:52,000 --> 00:04:55,000
You can move all these widgets anywhere.
67
00:04:57,000 --> 00:04:58,000
Let's leave it here.
68
00:04:58,000 --> 00:05:04,000
Here you can choose your perspective and the global perspective is the name given to an initial collection
69
00:05:04,000 --> 00:05:06,000
and arrangements of use.
70
00:05:06,000 --> 00:05:13,000
And then editor area, for example, take a look at current perspective is look like let's also press
71
00:05:13,000 --> 00:05:14,000
file new.
72
00:05:15,000 --> 00:05:16,000
Can you see this list?
73
00:05:16,000 --> 00:05:21,000
It contains MAVEN Project, Dynamic Web Project, IGB Project, etc..
74
00:05:22,000 --> 00:05:24,000
Now let's open another perspective.
75
00:05:24,000 --> 00:05:28,000
Let's hope and not Joe Enterprise Edition, but Java perspective.
76
00:05:31,000 --> 00:05:36,000
Here it is open, you see that the set of digits is different now.
77
00:05:37,000 --> 00:05:45,000
Let's open again, file new, and here we see a different list with Java project on top of it in Eclipse,
78
00:05:45,000 --> 00:05:48,000
you have multiple perspective and you can switch between them easily here.
79
00:05:50,000 --> 00:05:54,000
You have separate perspective for the bargain for database development, etc..
80
00:05:56,000 --> 00:06:02,000
Here's your Project Explorer view here, you'll find hierarchical representation of your projects and
81
00:06:02,000 --> 00:06:08,000
source code in case you lost some, you would like to open a new one, just press window.
82
00:06:09,000 --> 00:06:09,000
Shoyu.
83
00:06:10,000 --> 00:06:16,000
Other here, you can find all available views, which you can add to your workspace.
84
00:06:18,000 --> 00:06:21,000
Now let's create our Hello World Java project.
85
00:06:21,000 --> 00:06:26,000
You can click is a here or go to file new Java project.
86
00:06:27,000 --> 00:06:29,000
Let's go over project configurations here.
87
00:06:30,000 --> 00:06:32,000
Type any project name you would like.
88
00:06:32,000 --> 00:06:36,000
I will type learn I.T. fundamentals.
89
00:06:38,000 --> 00:06:44,000
Reached Java runtime environment you would like to use, you can select one of the predefined options
90
00:06:44,000 --> 00:06:49,000
in the clips, I would select the ones which are already installed on my computer.
91
00:06:49,000 --> 00:06:51,000
We can click finish.
92
00:06:51,000 --> 00:06:56,000
But for the sake of the interests, let's click next to learn what other configurations available for
93
00:06:56,000 --> 00:06:56,000
us.
94
00:06:57,000 --> 00:07:04,000
Here you can see many other configurations, for example, SAAC would be considered as your source folder,
95
00:07:05,000 --> 00:07:10,000
a source folder is a pass which is marked by clip's as containing Java sources which are needed to be
96
00:07:10,000 --> 00:07:11,000
compiled.
97
00:07:12,000 --> 00:07:18,000
You can also see that you can configure default output folder where all files with class extension will
98
00:07:18,000 --> 00:07:20,000
be stored in the library.
99
00:07:20,000 --> 00:07:24,000
STAP you can add additional external libraries, but we don't need them now.
100
00:07:25,000 --> 00:07:29,000
We will cover this part of configuration deeper later in this course.
101
00:07:30,000 --> 00:07:31,000
Let's just click finish now.
102
00:07:33,000 --> 00:07:39,000
Eclipse will ask us how we want to name our module Java Modules is a new feature which represented the
103
00:07:39,000 --> 00:07:46,000
first time in Java nine where the Java platform module system and Java module is a mechanism to package
104
00:07:46,000 --> 00:07:50,000
up your job application and Java packages into Java modules.
105
00:07:51,000 --> 00:07:57,000
A Java module can specify which of Java packages it contains that should be visible to other Java modules
106
00:07:57,000 --> 00:07:59,000
using these module.
107
00:07:59,000 --> 00:08:04,000
But with respect to our agenda for today, I suggest to come back to modules a bit later.
108
00:08:04,000 --> 00:08:06,000
Just click on create.
109
00:08:06,000 --> 00:08:12,000
Your project is created now and you'll remember that you need to create a class, so let's create it
110
00:08:12,000 --> 00:08:13,000
now.
111
00:08:14,000 --> 00:08:15,000
Let's expand your project.
112
00:08:16,000 --> 00:08:17,000
Do right.
113
00:08:17,000 --> 00:08:19,000
Click on the SSD source folder.
114
00:08:20,000 --> 00:08:21,000
New Class.
115
00:08:23,000 --> 00:08:24,000
Name of the class.
116
00:08:24,000 --> 00:08:25,000
Hello, girls.
117
00:08:25,000 --> 00:08:31,000
It has public modifier objects, always superclass of each type in Jawa.
118
00:08:31,000 --> 00:08:33,000
We'll discuss this on all be topic.
119
00:08:34,000 --> 00:08:37,000
We can also create a step of the main method.
120
00:08:37,000 --> 00:08:44,000
Just check this checkbox and the last, but not the least configuration package name package in Java
121
00:08:44,000 --> 00:08:48,000
is a mechanism to encapsulate a group of classes, sub packages and interfaces.
122
00:08:49,000 --> 00:08:52,000
Packages are used for preventing name and conflicts.
123
00:08:52,000 --> 00:08:58,000
Potentially, your application might have user class and the library which they're using in your application,
124
00:08:58,000 --> 00:09:00,000
might also contain user class.
125
00:09:00,000 --> 00:09:07,000
How we can say that your user and user from external library are different classes and we need to use
126
00:09:07,000 --> 00:09:08,000
user from external library.
127
00:09:09,000 --> 00:09:14,000
The full name of the class consist of package name plus class name, for example.
128
00:09:14,000 --> 00:09:16,000
Com dot Barek.
129
00:09:17,000 --> 00:09:17,000
Hello.
130
00:09:17,000 --> 00:09:19,000
World will be one class.
131
00:09:21,000 --> 00:09:29,000
Comb, dot, Google, hello, world will be completely different class, that's why for the package
132
00:09:29,000 --> 00:09:35,000
names reverse order of the main name is used my domain name because it's unique.
133
00:09:36,000 --> 00:09:42,000
Also packages I use for making search and locating and usage of classes, interfaces, enumerations
134
00:09:42,000 --> 00:09:49,000
and annotations easier later will learn that we can restrict access from different packages to the classes.
135
00:09:49,000 --> 00:09:51,000
Inside are the packages.
136
00:09:51,000 --> 00:10:00,000
Let's create package following with this bottom comb I Tibbles and your last name and press finish Pathum.
137
00:10:02,000 --> 00:10:09,000
You see a package declaration goes on top of the file here during the course, we'll run with you hotkeys,
138
00:10:10,000 --> 00:10:13,000
for example, control class will delete the line.
139
00:10:14,000 --> 00:10:18,000
Let's press control to remove this single line to the common.
140
00:10:19,000 --> 00:10:27,000
Eclipse has other suggestion support, what a subtle suggestion, let's start typing here, System C.
141
00:10:28,000 --> 00:10:35,000
Press controlled glass space, now you see this dropdown list eclipses trying to guess what you would
142
00:10:35,000 --> 00:10:42,000
like to type here, select type which you need from the least press center type dot.
143
00:10:43,000 --> 00:10:52,000
And again, at a suggestion I will go with out here, press center dot start typing print.
144
00:10:53,000 --> 00:10:54,000
And here is our method.
145
00:10:56,000 --> 00:10:57,000
That's right, string literal here.
146
00:10:58,000 --> 00:10:58,000
Hello, world.
147
00:11:00,000 --> 00:11:06,000
Asterisk near the file name means the file is not safe birth control plus s to save the file.
148
00:11:07,000 --> 00:11:15,000
You can run your program in different ways, first option for you is mouse right click run s Java application.
149
00:11:16,000 --> 00:11:22,000
The second option is to find this icon here and again, run s Java application.
150
00:11:23,000 --> 00:11:27,000
And the third option is Hotkey Control Class F 11.
151
00:11:28,000 --> 00:11:29,000
Let's run our program now.
152
00:11:30,000 --> 00:11:32,000
And here we have output.
153
00:11:32,000 --> 00:11:35,000
Hello, world, congratulations.
154
00:11:36,000 --> 00:11:39,000
One more trick for out.
155
00:11:39,000 --> 00:11:45,000
You can use something like this, just type this out and press controlled space.
156
00:11:45,000 --> 00:11:50,000
You get system out into then and now.
157
00:11:50,000 --> 00:11:53,000
Let's recap what we have learned today after this lesson.
158
00:11:53,000 --> 00:11:57,000
We know what is integrated development environment.
159
00:11:57,000 --> 00:12:00,000
What are most popular ideas for Java development?
160
00:12:01,000 --> 00:12:03,000
How to configure Eclipse on your computer.
161
00:12:04,000 --> 00:12:11,000
You learned the concept of packages and created your first project in Eclipse and now your homework
162
00:12:13,000 --> 00:12:13,000
download.
163
00:12:13,000 --> 00:12:17,000
I guess you can choose whatever idea you wish.
164
00:12:17,000 --> 00:12:22,000
Install it on your computer and create Hello World Project in your ID.
|