1
00:00:00,490 --> 00:00:01,990
Hello, welcome back.

2
00:00:02,530 --> 00:00:09,540
This is the Latin demo walk through how the how to disassemble a Java code.

3
00:00:10,060 --> 00:00:17,080
And we are going to use these two tools, Jarobi and Java C and these two tools are already included

4
00:00:17,200 --> 00:00:19,170
in your temperature machine.

5
00:00:19,450 --> 00:00:20,530
So let's get started.

6
00:00:21,040 --> 00:00:25,750
So this is a file which I already provided for you to download in the previous Nesson.

7
00:00:26,230 --> 00:00:28,790
Just unzip it and put it on your desktop.

8
00:00:29,740 --> 00:00:34,980
And this is the inside this folder you have in this Sasko Java source code.

9
00:00:35,500 --> 00:00:37,140
Hello, Java.

10
00:00:37,630 --> 00:00:41,860
And you can open it with text editor to view the contents.

11
00:00:44,030 --> 00:00:54,910
And this is an example of a simple Java, could you have a class public class hell on Earth and inside

12
00:00:55,040 --> 00:01:03,280
if you have a public static, void main method and there is only one instruction in this block system,

13
00:01:03,290 --> 00:01:04,220
the opening line.

14
00:01:04,440 --> 00:01:05,140
Hello.

15
00:01:05,420 --> 00:01:08,600
So that is all he's going to do out a message call.

16
00:01:08,620 --> 00:01:08,970
Hello.

17
00:01:10,160 --> 00:01:20,780
So in order to convert this school into Bikel, that is open the command line terminal first ACMD.

18
00:01:23,810 --> 00:01:30,890
And then they are going to navigate to this territory, so we copy this tree over here, right?

19
00:01:30,890 --> 00:01:37,280
Click and copy and then in the windows, come on from, we are going to change territory.

20
00:01:38,430 --> 00:01:42,350
So based upon that, we have copy presenter.

21
00:01:43,600 --> 00:01:53,680
Keyed into it, and then now that I see the contents and you have had a of Java Soska, in order to

22
00:01:53,920 --> 00:02:02,260
convert this source code into bytecode, we need to use compiler code, Java Sea.

23
00:02:02,920 --> 00:02:05,200
Java Sea, hello, Earth.

24
00:02:05,680 --> 00:02:09,460
So we type Java C, followed by the name of the source code file.

25
00:02:10,000 --> 00:02:10,990
And then we hear it.

26
00:02:12,490 --> 00:02:12,910
All right.

27
00:02:12,940 --> 00:02:18,870
So now you will see after the competition is finished, there will be a new FAQ not.

28
00:02:19,260 --> 00:02:20,740
So this is called the bytecode.

29
00:02:21,280 --> 00:02:26,260
In order to cover this into backorder that we can view, we need this assembler.

30
00:02:26,680 --> 00:02:36,120
So the disassembly is going to be so heavy to be by self-deceit.

31
00:02:36,370 --> 00:02:40,150
What we want is to address the option negotiation.

32
00:02:40,170 --> 00:02:41,550
We will disassemble the code.

33
00:02:42,580 --> 00:02:53,040
So let's try to clear the screening in danger would be that she followed by the class and he has converted

34
00:02:53,110 --> 00:02:57,090
the binary into a vacuum which is readable.

35
00:02:58,000 --> 00:03:02,520
Now, in order to have a better view of this, we can all put it to a file.

36
00:03:02,980 --> 00:03:12,160
So we repeat the command being redirected to a file and we can disassemble that Java.

37
00:03:14,110 --> 00:03:18,640
And now we see there's a new fire called the Central Java, and we can open this one.

38
00:03:19,910 --> 00:03:27,780
If you have a text editor and this is a Java view, you can see that it's been disassembled.

39
00:03:28,150 --> 00:03:35,250
We have the look and the engross picture, which actually just creates an object.

40
00:03:36,400 --> 00:03:45,970
And then here system the print line method, which is a static method and LDC is to the string and guess

41
00:03:45,970 --> 00:03:49,190
that it's just to load the matter into the stack.

42
00:03:49,930 --> 00:04:01,540
So this is how we can compile Java binary from source code and how we can disassemble the binary back

43
00:04:01,560 --> 00:04:02,910
into Backwood.

44
00:04:03,520 --> 00:04:05,920
So that's all for this video.

45
00:04:06,100 --> 00:04:07,330
Thank you for watching.
