Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
1
00:00:00,925 --> 00:00:02,301
Alright, so let's go ahead
2
2
00:00:02,301 --> 00:00:04,134
and move into Eclipse.
3
3
00:00:05,751 --> 00:00:06,868
So, the first thing I wanna do is just
4
4
00:00:06,868 --> 00:00:08,783
change over my perspective.
5
5
00:00:08,783 --> 00:00:11,635
Right now, you're probably in the Java EE perspective,
6
6
00:00:11,635 --> 00:00:13,512
and we wanna change that.
7
7
00:00:13,512 --> 00:00:16,762
So, let me go to my window menu option,
8
8
00:00:18,419 --> 00:00:21,979
and I'll say perspective, and here I'll say
9
9
00:00:21,979 --> 00:00:24,917
open perspective, and I'll just choose Java.
10
10
00:00:24,917 --> 00:00:26,602
Just the regular Java perspective.
11
11
00:00:26,602 --> 00:00:28,519
Just to get us started.
12
12
00:00:29,396 --> 00:00:31,797
So we just have a plain, vanilla Eclipse right now.
13
13
00:00:31,797 --> 00:00:32,839
Nothing's here.
14
14
00:00:32,839 --> 00:00:36,067
We're actually gonna create our first project in Eclipse.
15
15
00:00:36,067 --> 00:00:40,067
So I go to file, new, and I'll say Java project.
16
16
00:00:44,449 --> 00:00:46,051
Now, the name I'll give for this project,
17
17
00:00:46,051 --> 00:00:48,822
I'll call it spring demo one.
18
18
00:00:48,822 --> 00:00:50,039
You can give any name you want,
19
19
00:00:50,039 --> 00:00:51,483
but let's just keep this one here,
20
20
00:00:51,483 --> 00:00:54,439
just to stay consistent the rest of the video.
21
21
00:00:54,439 --> 00:00:56,522
And then I'll hit finish.
22
22
00:00:59,370 --> 00:01:00,994
Alright, so I have a very empty project.
23
23
00:01:00,994 --> 00:01:02,277
Nothing's there.
24
24
00:01:02,277 --> 00:01:04,517
What I'd like to do is actually go ahead
25
25
00:01:04,517 --> 00:01:08,151
and start downloading some of the Spring JAR files,
26
26
00:01:08,151 --> 00:01:10,830
and I'll actually add it to this project.
27
27
00:01:10,830 --> 00:01:13,939
So let me swing over to my web browser
28
28
00:01:13,939 --> 00:01:16,465
and I wanna download the spring JAR files.
29
29
00:01:16,465 --> 00:01:19,508
So you can go to luv2code.com/downloadspring.
30
30
00:01:19,508 --> 00:01:21,079
This'll basically just redirect you
31
31
00:01:21,079 --> 00:01:25,138
to the real Spring website of where you can download files.
32
32
00:01:25,138 --> 00:01:27,255
And you'll see something very similar to what we have here,
33
33
00:01:27,255 --> 00:01:29,779
the index of, and they give you a list of
34
34
00:01:29,779 --> 00:01:32,466
all these little sub-directories.
35
35
00:01:32,466 --> 00:01:35,188
So this is basically Spring's repository
36
36
00:01:35,188 --> 00:01:37,056
of all the different versions of Spring,
37
37
00:01:37,056 --> 00:01:39,139
even since way back when.
38
38
00:01:41,140 --> 00:01:42,191
So what I'd like to do is go ahead
39
39
00:01:42,191 --> 00:01:44,553
and kinda scroll down to the bottom here,
40
40
00:01:44,553 --> 00:01:48,603
and what we wanna do here is choose the latest release.
41
41
00:01:48,603 --> 00:01:50,585
Just choose the latest one there.
42
42
00:01:50,585 --> 00:01:52,771
They'll take you to a directory, and then here
43
43
00:01:52,771 --> 00:01:55,438
you choose the release dist.zip.
44
44
00:01:57,503 --> 00:01:59,985
Whatever your version number is, choose release dist.zip.
45
45
00:01:59,985 --> 00:02:02,499
And that's the only one you need to do to select.
46
46
00:02:02,499 --> 00:02:04,154
So go ahead and click that file.
47
47
00:02:04,154 --> 00:02:07,192
Your web browser will prompt you to save the file,
48
48
00:02:07,192 --> 00:02:08,859
and then you go ahead and save that file
49
49
00:02:08,859 --> 00:02:10,526
to your file system.
50
50
00:02:12,003 --> 00:02:12,836
Okay, great.
51
51
00:02:12,836 --> 00:02:14,245
So we have it downloading.
52
52
00:02:14,245 --> 00:02:16,314
Now, what we can do is we can kinda swing over
53
53
00:02:16,314 --> 00:02:18,343
to our file system and take a look at it.
54
54
00:02:18,343 --> 00:02:19,527
So I'm on a Mac.
55
55
00:02:19,527 --> 00:02:21,468
I just go to my downloads directory.
56
56
00:02:21,468 --> 00:02:23,451
Choose whatever downloads directory you have
57
57
00:02:23,451 --> 00:02:24,965
in your operating system.
58
58
00:02:24,965 --> 00:02:27,216
There's that zip file that was just downloaded.
59
59
00:02:27,216 --> 00:02:31,383
You can simply unzip it and it'll expand everything for you.
60
60
00:02:35,698 --> 00:02:36,774
So, there we go.
61
61
00:02:36,774 --> 00:02:39,025
A new folder called Spring framework release.
62
62
00:02:39,025 --> 00:02:40,880
And I can expand this folder here,
63
63
00:02:40,880 --> 00:02:42,682
and this is basically the Spring frameworks.
64
64
00:02:42,682 --> 00:02:45,961
They have docs, libs, and schema and READMEs and so on.
65
65
00:02:45,961 --> 00:02:48,170
We're interested in the lib folder.
66
66
00:02:48,170 --> 00:02:49,363
The libs folder, actually.
67
67
00:02:49,363 --> 00:02:50,205
Plural.
68
68
00:02:50,205 --> 00:02:52,285
And there's a lot of JAR files in here.
69
69
00:02:52,285 --> 00:02:53,935
What we're gonna do is actually select
70
70
00:02:53,935 --> 00:02:56,657
all of the JAR files, 'cause we will make use of them
71
71
00:02:56,657 --> 00:02:58,985
in some of our upcoming videos.
72
72
00:02:58,985 --> 00:03:01,400
So you simply select all of those JAR files,
73
73
00:03:01,400 --> 00:03:03,146
right click and choose copy.
74
74
00:03:03,146 --> 00:03:05,188
Now, you really don't need all of these
75
75
00:03:05,188 --> 00:03:07,178
JAR files for right now, but we'll just go ahead
76
76
00:03:07,178 --> 00:03:08,092
and keep it simple.
77
77
00:03:08,092 --> 00:03:09,350
We'll just copy everything over there.
78
78
00:03:09,350 --> 00:03:11,763
Even if there's some duplicates, we'll just copy 'em anyway,
79
79
00:03:11,763 --> 00:03:14,481
and we'll make use of them in our project.
80
80
00:03:14,481 --> 00:03:16,296
So, again, we're just kinda keeping things simple
81
81
00:03:16,296 --> 00:03:17,486
for right now.
82
82
00:03:17,486 --> 00:03:19,226
So, I move back into Eclipse.
83
83
00:03:19,226 --> 00:03:21,251
I move back to that project that we just created,
84
84
00:03:21,251 --> 00:03:24,369
spring demo one, and I wanna create a new folder.
85
85
00:03:24,369 --> 00:03:27,317
So I will do a right click, and I choose folder.
86
86
00:03:27,317 --> 00:03:30,085
And for the name of the folder, I call it lib.
87
87
00:03:30,085 --> 00:03:31,681
L-I-B.
88
88
00:03:31,681 --> 00:03:33,325
Real simple.
89
89
00:03:33,325 --> 00:03:36,456
And then we hit the finish button.
90
90
00:03:36,456 --> 00:03:37,289
So, great.
91
91
00:03:37,289 --> 00:03:39,763
So Eclipse creates a new folder here for us called lib.
92
92
00:03:39,763 --> 00:03:42,557
What I wanna do is simply paste those JAR files
93
93
00:03:42,557 --> 00:03:44,880
that I just copied, all those Spring JAR files,
94
94
00:03:44,880 --> 00:03:47,184
I simply wanna paste them here in this folder.
95
95
00:03:47,184 --> 00:03:48,728
So I do a right click and choose paste,
96
96
00:03:48,728 --> 00:03:50,143
and then we see the output.
97
97
00:03:50,143 --> 00:03:51,346
So we have all these JAR files.
98
98
00:03:51,346 --> 00:03:52,694
So this is really cool.
99
99
00:03:52,694 --> 00:03:55,277
We have those JARs copied over.
100
100
00:03:56,836 --> 00:03:57,784
So this is cool.
101
101
00:03:57,784 --> 00:03:59,250
But now there's one other thing we have to do.
102
102
00:03:59,250 --> 00:04:01,344
We actually need to add this to the class path
103
103
00:04:01,344 --> 00:04:03,127
of our Eclipse project.
104
104
00:04:03,127 --> 00:04:06,099
So in our Eclipse project, at the root of it,
105
105
00:04:06,099 --> 00:04:08,337
right click on spring demo one,
106
106
00:04:08,337 --> 00:04:12,087
and you'll right click and choose properties.
107
107
00:04:16,306 --> 00:04:18,230
Alright, so this brings up a property style log.
108
108
00:04:18,230 --> 00:04:19,265
There's an option here on the left
109
109
00:04:19,265 --> 00:04:21,339
called Java build path.
110
110
00:04:21,339 --> 00:04:22,844
Go ahead and select that.
111
111
00:04:22,844 --> 00:04:26,419
And then there's a little tab here called libraries.
112
112
00:04:26,419 --> 00:04:27,924
Click on that one.
113
113
00:04:27,924 --> 00:04:30,611
And then we're gonna choose add JARS,
114
114
00:04:30,611 --> 00:04:32,315
'cause we wanna add all those JARs that we just
115
115
00:04:32,315 --> 00:04:33,996
added to the project.
116
116
00:04:33,996 --> 00:04:37,104
So, we expand our little folders here for spring demo one.
117
117
00:04:37,104 --> 00:04:41,104
Go to lib, and then just scroll all the way down
118
118
00:04:42,121 --> 00:04:44,335
and grab all those Spring JAR files.
119
119
00:04:44,335 --> 00:04:45,559
Just do a shift click.
120
120
00:04:45,559 --> 00:04:49,559
Highlight all those JAR files and then hit okay.
121
121
00:04:51,890 --> 00:04:53,315
So, now it's gonna add these JAR files
122
122
00:04:53,315 --> 00:04:54,657
to our class path.
123
123
00:04:54,657 --> 00:04:57,896
You can go ahead and click the okay button one more time.
124
124
00:04:57,896 --> 00:04:59,237
And then there we go.
125
125
00:04:59,237 --> 00:05:00,901
So, now you should see this new item
126
126
00:05:00,901 --> 00:05:03,993
over on the left-hand side called referenced libraries.
127
127
00:05:03,993 --> 00:05:05,780
So now this is where Eclipse is saying,
128
128
00:05:05,780 --> 00:05:09,744
hey, these are some JAR files I'm gonna reference
129
129
00:05:09,744 --> 00:05:12,238
for application run time and compile.
130
130
00:05:12,238 --> 00:05:13,071
We're in good shape.
131
131
00:05:13,071 --> 00:05:14,974
So if you have this part set up then you're good to go.
132
132
00:05:14,974 --> 00:05:17,004
So, that's really it for downloading
133
133
00:05:17,004 --> 00:05:20,108
the Spring JAR files and setting up your project.
134
134
00:05:20,108 --> 00:05:22,273
So, what we'll do is we'll actually use this project
135
135
00:05:22,273 --> 00:05:24,336
in some of the following videos
136
136
00:05:24,336 --> 00:05:27,002
to start building some Spring applications.
137
137
00:05:27,002 --> 00:05:29,070
So you're almost there.
138
138
00:05:29,070 --> 00:05:29,903
Yay.
11666
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.