1

00:00:01,020  -->  00:00:07,680
This is an important lesson and we will look at how we can configure multiple Geordie's and play with

2

00:00:07,680  -->  00:00:11,820
them and also we look at Eclipse's completion process.

3

00:00:11,820  -->  00:00:17,630
First thing is let's just go ahead and create an interface within our eclipse package.

4

00:00:17,730  -->  00:00:24,540
So let's just right click say new and create an interface earlier we created a class.

5

00:00:24,640  -->  00:00:29,570
Let's just name it as best I finish.

6

00:00:30,450  -->  00:00:32,010
Let's add a default method here

7

00:00:35,040  -->  00:00:36,600
and it's just formatted.

8

00:00:36,660  -->  00:00:44,320
So if you recall from our coding conventions class the command for that is control shift and that called

9

00:00:44,340  -->  00:00:46,080
automatically formatted.

10

00:00:46,080  -->  00:00:48,220
So that's an that's an interface.

11

00:00:48,540  -->  00:00:54,670
Now let's just say that we are working for a company on the team itself is using an older version of

12

00:00:55,080  -->  00:00:55,540
July.

13

00:00:55,560  -->  00:00:57,210
Let's say it's using Java 6.

14

00:00:57,540  -->  00:01:03,510
But here we have we are you know we just created a default method which is which has been introduced

15

00:01:03,540  -->  00:01:08,610
only in July 8 so we may be forced to use our older version.

16

00:01:08,610  -->  00:01:13,900
So let's just go ahead and let's just assume that this is some test package that we create or destroy

17

00:01:13,920  -->  00:01:14,510
best.

18

00:01:14,820  -->  00:01:18,110
So let's now try to install.

19

00:01:18,450  -->  00:01:25,020
Let's just say we want to write some real code for the company and we have to use a JDK motion like

20

00:01:25,020  -->  00:01:26,370
6 or something like that.

21

00:01:26,520  -->  00:01:28,120
So let's just go ahead and do that.

22

00:01:28,240  -->  00:01:31,410
How is that going to window.

23

00:01:31,650  -->  00:01:34,530
References here.

24

00:01:34,560  -->  00:01:39,300
And but for instance you have this option Jawa that's good doc and here that is this thing called us

25

00:01:39,420  -->  00:01:40,890
unstarted GEORGIS.

26

00:01:40,890  -->  00:01:46,590
Right now the latest version has been installed and that's what we were using here in the Eclipse's

27

00:01:46,600  -->  00:01:47,730
package.

28

00:01:47,730  -->  00:01:53,090
So that's the one which has which is which is which is also being used to launch eclipse etc..

29

00:01:53,280  -->  00:01:56,710
OK so let's just add a new one that's Greek on here.

30

00:01:57,200  -->  00:02:05,900
Is jihadi type it's just send next and let's select one from the disk.

31

00:02:06,190  -->  00:02:06,370
So

32

00:02:10,690  -->  00:02:14,470
the program files Jawa.

33

00:02:16,020  -->  00:02:18,050
And it's just big geodesics.

34

00:02:18,340  -->  00:02:19,230
That's.

35

00:02:19,410  -->  00:02:20,430
OK.

36

00:02:20,910  -->  00:02:21,460
OK.

37

00:02:21,510  -->  00:02:24,030
Now let's just finish.

38

00:02:24,060  -->  00:02:26,590
So this has been added sort of.

39

00:02:26,610  -->  00:02:29,220
This is intense.

40

00:02:29,370  -->  00:02:33,520
It's just and I.

41

00:02:33,840  -->  00:02:37,250
So that was installed Geordie's option within Java.

42

00:02:37,560  -->  00:02:42,330
So that's the JRD for running our programs now for compiling.

43

00:02:42,330  -->  00:02:51,300
Also we need to eclipse that we want to use a comprehensive level of 1.6 so we want to compile our stuff

44

00:02:51,380  -->  00:02:51,560
.

45

00:02:51,760  -->  00:02:54,700
But that version 1.6.

46

00:02:54,900  -->  00:02:56,270
No why are we doing this.

47

00:02:56,280  -->  00:03:02,920
That's because eclipse actually internally it uses a different compiler not the regular Jela jealousy

48

00:03:02,930  -->  00:03:07,080
compiler it uses its own compiler called Eclipse compiler for Java.

49

00:03:07,170  -->  00:03:16,310
OK so here we are saying that please compile with a ocean 1.6 with a comprehensive level of 1.6 because

50

00:03:16,420  -->  00:03:21,200
so we are telling that to two eclipse on that's just hit apply here.

51

00:03:21,500  -->  00:03:22,140
Mr..

52

00:03:22,200  -->  00:03:22,920
Yes.

53

00:03:23,460  -->  00:03:24,120
OK.

54

00:03:24,450  -->  00:03:28,720
But you'll see that here you know it's not showing any compilation at all.

55

00:03:28,770  -->  00:03:33,960
Even though we are using Eclipse saw a job while 1.6.

56

00:03:33,960  -->  00:03:40,500
So the reason for that is because whatever we have done right now will apply to only future projects

57

00:03:40,520  -->  00:03:40,670
.

58

00:03:40,830  -->  00:03:41,160
OK.

59

00:03:41,160  -->  00:03:43,660
The projects that get created from here onwards.

60

00:03:43,680  -->  00:03:45,590
OK not to the existing one.

61

00:03:45,600  -->  00:03:50,700
So for the existing one there is already some settings and we need to or we need to change that.

62

00:03:50,730  -->  00:04:00,660
So let's just go ahead and create a new package new job project and let's just collect us best.

63

00:04:00,660  -->  00:04:07,430
Now you can see that it is using an execution environment of 1.6 and it's sad next.

64

00:04:07,650  -->  00:04:14,880
And here is the settings on which in the library we are using the 1.6 once again as I mentioned earlier

65

00:04:14,890  -->  00:04:14,960
.

66

00:04:15,000  -->  00:04:16,140
That's next.

67

00:04:16,180  -->  00:04:21,170
And let's also go ahead and create the same interface now.

68

00:04:21,180  -->  00:04:28,890
So let's just it can do it from file or we can also create created here in New interface.

69

00:04:28,970  -->  00:04:30,660
It's just have the same name

70

00:04:34,800  -->  00:04:38,160
as you can see now it is giving us a compilation error.

71

00:04:38,340  -->  00:04:44,610
So it says change project compliance on Jerry to one point because default methods are not accepted

72

00:04:44,970  -->  00:04:46,920
here in 1.6.

73

00:04:47,070  -->  00:04:51,510
It's just development that are allowed only source level one point eight or able.

74

00:04:51,640  -->  00:04:54,750
OK so that's the thing so far this new package.

75

00:04:54,750  -->  00:05:00,370
So we have geodesy ironed out with a compiler complient level it was 1.6.

76

00:05:00,390  -->  00:05:03,020
So let's just change it for this project also.

77

00:05:03,030  -->  00:05:03,450
OK.

78

00:05:03,540  -->  00:05:09,570
So let's just right click here and you'll see all the options specific to this project and let's go

79

00:05:09,580  -->  00:05:17,770
to this bottom one which is properties we conduct now here there is this thing called a job.

80

00:05:17,810  -->  00:05:21,190
But I can explain what that is in a book.

81

00:05:21,380  -->  00:05:23,330
So let's go here to libraries.

82

00:05:23,330  -->  00:05:31,730
So it's using the library so let's just remove it unless I add a new library so let's head this but

83

00:05:31,730  -->  00:05:34,210
and call our library.

84

00:05:34,260  -->  00:05:36,150
That's the JRD system nobody.

85

00:05:36,170  -->  00:05:41,120
That's the one which we want and let's just use the workspace workspace Geordi.

86

00:05:41,120  -->  00:05:46,090
Now if you want an alternate theory you can click this and you can select from here.

87

00:05:46,290  -->  00:05:51,350
You know you can set up from here or you can even set a crimp muckraking on this button but it's just

88

00:05:52,670  -->  00:06:00,850
we just need to get six months out of this and finish tickler search and apply and it's going to this

89

00:06:00,860  -->  00:06:01,850
Java compiler.

90

00:06:01,850  -->  00:06:06,680
So this is the compiler settings just for this project that we selected.

91

00:06:06,900  -->  00:06:07,240
OK.

92

00:06:07,330  -->  00:06:16,820
One point eight now and we need to have it as 1.6 now say apply it says bury the project.

93

00:06:16,840  -->  00:06:17,690
OK.

94

00:06:18,110  -->  00:06:18,950
Yes.

95

00:06:19,100  -->  00:06:23,220
Rebuilding the project and explain what building is.

96

00:06:23,420  -->  00:06:27,300
Now you can see that there is a compilation does the right icon is here.

97

00:06:27,560  -->  00:06:34,770
Which means that you know we have some issue and that is the default method cannot be different and

98

00:06:35,030  -->  00:06:36,880
different methods cannot be used here.

99

00:06:37,090  -->  00:06:37,430
OK.

100

00:06:37,430  -->  00:06:38,160
So that's it.

101

00:06:38,240  -->  00:06:40,100
And now let's go back

102

00:06:44,000  -->  00:06:47,640
let's look at what a belt Pattis barely part is.

103

00:06:47,660  -->  00:06:53,870
Simply put it's the classpath glass but to walk glass back to the source code that needs to be compiled

104

00:06:53,870  -->  00:06:54,860
.

105

00:06:54,920  -->  00:06:58,770
It can also include some libraries that the source code depend on.

106

00:06:58,800  -->  00:07:04,970
Like in this case by default we have a system library jihadi library which is nothing but the Java library

107

00:07:04,970  -->  00:07:05,770
.

108

00:07:05,780  -->  00:07:11,510
In addition if you want to add any extra jobs like the Google Google on Apache Commons you can get from

109

00:07:11,510  -->  00:07:15,910
here you can get those dot files so that your source code can use them.

110

00:07:15,940  -->  00:07:16,500
OK.

111

00:07:16,610  -->  00:07:19,990
In addition to the libraries you can also how other projects.

112

00:07:19,990  -->  00:07:25,190
Let's say for example other projects in the same workspace that say for example eclipse just is going

113

00:07:25,190  -->  00:07:28,110
to use some code for the next project.

114

00:07:28,130  -->  00:07:30,770
In that case we can add that project here.

115

00:07:30,770  -->  00:07:32,820
So you how inter-dependent projects.

116

00:07:32,930  -->  00:07:37,610
And sometimes when you're writing professional aquarter like let's say a large e-commerce application

117

00:07:37,610  -->  00:07:42,620
or something like that then you may have multiple components and each component would be a project depending

118

00:07:42,620  -->  00:07:43,580
on on that project.

119

00:07:43,580  -->  00:07:48,650
For example there can be a project just for credit card processing so you Hylan the code related to

120

00:07:48,650  -->  00:07:54,370
credit card processing on other parts other projects in your application can use that code.

121

00:07:54,740  -->  00:08:00,980
And so that's how you build inter-dependent projects within the same application and application is

122

00:08:00,980  -->  00:08:02,920
represented by the workspace itself.

123

00:08:03,030  -->  00:08:03,500
OK.

124

00:08:03,710  -->  00:08:05,120
So that's the back.

125

00:08:05,120  -->  00:08:08,050
Now why is it called as big bot.

126

00:08:08,690  -->  00:08:15,320
Because it is used in something called as a bell process on what is a bell process at Bell process.

127

00:08:15,310  -->  00:08:21,350
Simply put it translates your source code into compiled code.

128

00:08:21,350  -->  00:08:28,590
So all all this time before we were using Eclipse we were still involved doing this bell process becoming

129

00:08:28,590  -->  00:08:33,380
the big process but we were doing it manually we would compile the source code manually which was a

130

00:08:33,380  -->  00:08:34,520
very tedious process.

131

00:08:34,520  -->  00:08:38,230
We would open the command prompt typing the java command and we would do that.

132

00:08:38,290  -->  00:08:38,830
Right.

133

00:08:38,870  -->  00:08:40,970
So that was a very tedious process.

134

00:08:41,000  -->  00:08:42,670
Now with Eclipse.

135

00:08:43,010  -->  00:08:47,220
So that's done automatically it's done by something called us a bit more.

136

00:08:47,530  -->  00:08:48,040
OK.

137

00:08:48,140  -->  00:08:52,140
So eclipse uses this tool cordless Jawa builder.

138

00:08:52,190  -->  00:08:54,500
So that's the barrier to Angela.

139

00:08:54,530  -->  00:09:00,700
But basically it's just a class with an eclipse and it uses the eclipse compiler for Java.

140

00:09:00,850  -->  00:09:06,500
It's proprietary compiler which which I mentioned earlier along with this belly but I and it uses a

141

00:09:06,500  -->  00:09:12,720
compiler to compile all this core undeground basically create declassifies.

142

00:09:12,950  -->  00:09:15,600
OK so that's the Java barrier.

143

00:09:15,680  -->  00:09:20,840
And then you are working on professional code you would also include other kinds of Belmarsh like mine

144

00:09:20,850  -->  00:09:26,830
when are some tools you might be using your T might be using or and some tools like that.

145

00:09:27,020  -->  00:09:29,640
OK so those are better tools on Java.

146

00:09:29,750  -->  00:09:35,600
Is it by default it uses art to obey it just automatically.

147

00:09:35,600  -->  00:09:42,200
So what that means is every time you make a change you make any change in your source code that source

148

00:09:42,200  -->  00:09:42,580
code.

149

00:09:42,570  -->  00:09:45,870
And if you save it it's instantaneously compiled.

150

00:09:45,920  -->  00:09:47,790
OK so that's auto building.

151

00:09:47,960  -->  00:09:53,750
And that option is here by default begge automatically and it is done in an incremental way.

152

00:09:53,780  -->  00:09:58,700
Which means that if you have a large code base it doesn't mean that every time you make a change it's

153

00:09:58,700  -->  00:10:01,310
going to compile all the files.

154

00:10:01,320  -->  00:10:04,480
It's not going to happen if it does not it's qualis a full rebuild.

155

00:10:04,610  -->  00:10:07,820
It's not going to happen what because it will be very slow.

156

00:10:07,910  -->  00:10:08,700
So does it.

157

00:10:08,700  -->  00:10:13,080
And it does in a very incremental ways so only the files that are changed are compiled.

158

00:10:13,190  -->  00:10:19,220
OK now if ever you want to compile the whole thing if you want to rebuild the entire project you can

159

00:10:19,220  -->  00:10:24,890
just go into a project and hit clean and it will ask you whether you want to clean all projects or only

160

00:10:24,890  -->  00:10:29,750
the selected Bunson if you want only those allocated ones you can do that if you want all projects to

161

00:10:29,750  -->  00:10:30,630
do this.

162

00:10:30,740  -->  00:10:38,360
And if you hit OK then what happens is all you are classified on your hard drive they get deleted and

163

00:10:38,360  -->  00:10:40,100
then they get recreated once again

164

00:10:43,040  -->  00:10:44,870
here if you're going to eclipse.

165

00:10:45,030  -->  00:10:45,480
Sorry

166

00:10:51,140  -->  00:10:51,820
for me.

167

00:10:51,910  -->  00:10:55,110
God Creator you know that this is the new time stamp.

168

00:10:55,160  -->  00:11:01,570
So everything got rebuilt just because we have had we have done a rebuild by clicking on Windows and

169

00:11:01,730  -->  00:11:02,550
project pallium.

170

00:11:02,660  -->  00:11:03,030
OK.

171

00:11:03,140  -->  00:11:04,970
So that's what you would do.

172

00:11:05,740  -->  00:11:08,640
And you have to do a full rebuild.

173

00:11:08,690  -->  00:11:12,440
So that's the bail process and that's about it.
