Java Tutorial For Beginners 1 Introduction and Installing the java JDK Step by Step Tutorial720p [w/ subs]



00:00:00 – hello guys welcome to the first video
00:00:02 – tutorial on Java programming for
00:00:04 – beginners and in this video we will see
00:00:07 – what is java why do we care about
00:00:10 – learning java and if time permits so we
00:00:13 – will also see how we can install java in
00:00:17 – our windows operating system so what is
00:00:20 – java java is a high-level programming
00:00:24 – language which was developed by sun
00:00:28 – microsystems in early 90s so as any
00:00:33 – other high-level programming language
00:00:36 – like c sharp or c++ java is also a
00:00:39 – high-level language but it's a little
00:00:43 – bit different from other languages in a
00:00:46 – sense that it's a cross-platform the
00:00:49 – programming language which you can
00:00:53 – develop and run on multiple operating
00:00:56 – system like windows linux and mac OS or
00:01:00 – any other operating system and it runs
00:01:04 – its program using a special virtual
00:01:09 – machine called Java Virtual Machine
00:01:12 – which is this one so this java machine
00:01:16 – is responsible for running java programs
00:01:20 – and whenever you install java on your
00:01:24 – operating system like windows or linux
00:01:27 – you also install this java virtual
00:01:29 – machine and this java virtual machine is
00:01:33 – same for every you know operating system
00:01:37 – so your program runs on this Java
00:01:40 – Virtual Machine and not on the native
00:01:43 – you know windows or Linux operating
00:01:46 – system so this java virtual machine is
00:01:50 – same for every operating system that's
00:01:52 – why it's it runs on every operating
00:01:57 – system which java supports right so if
00:02:00 – you compile a java program on Windows
00:02:03 – you can run it on linux or mac OS using
00:02:08 – this java virtual machine that's why
00:02:10 – before developing java be
00:02:13 – or need to install java jdk and jari on
00:02:17 – our operating system okay and java is a
00:02:24 – object-oriented programming language so
00:02:28 – we will see what object oriented
00:02:30 – programming is and what are the features
00:02:33 – of object object oriented programming
00:02:35 – but yeah its object oriented programming
00:02:39 – and when I will teach you more about the
00:02:42 – programming we will see what is this so
00:02:47 – now first of all we need to install Java
00:02:52 – on our system and it may be possible
00:02:57 – that Java is already installed on your
00:03:00 – system or it may be possible that you
00:03:02 – have never installed java on your system
00:03:05 – so how to check whether Java is
00:03:07 – installed on your system it's easy so
00:03:11 – you just need to if you are on Windows 8
00:03:14 – you just need to right-click your Start
00:03:17 – menu button and open command prompt from
00:03:20 – here and in here you just need to give
00:03:23 – this command Java Sea okay so give this
00:03:27 – command Java Sea and press ENTER and if
00:03:30 – this command response that Java Sea is
00:03:33 – not recognized as an internal or
00:03:36 – external command then Java is most
00:03:39 – probably not installed in your system
00:03:41 – and you need to install Java on your
00:03:44 – system okay so like my operating suit on
00:03:47 – I don't have java so I will install it
00:03:50 – so just open your browser and just
00:03:53 – search for java jdk or simply java also
00:04:00 – works and in here the first side will
00:04:03 – open hopefully from oracle com just
00:04:07 – click this link and in here you will be
00:04:11 – able to see two options one is java jdk
00:04:17 – other is NetBeans with JD Kane so Java
00:04:21 – is you know the third
00:04:25 – it form and that means is a ide and you
00:04:28 – have the option to install Java with
00:04:31 – this development IDE but I will not
00:04:34 – choose this option but I will choose
00:04:37 – this option for now and at the time of
00:04:40 – making this video java 8 is latest
00:04:42 – version because yeah it's the latest
00:04:47 – version right and when you click this
00:04:50 – Java button here so once again Java but
00:04:54 – me I clicked in here you need to accept
00:04:59 – this license end and condition in order
00:05:01 – to download this Java so just click the
00:05:06 – small radio button which calls except
00:05:09 – license agreement and then choose your
00:05:13 – operating system so my operating system
00:05:16 – is windows 64 if you have windows 32-bit
00:05:21 – operating system you need to choose x86
00:05:24 – but right now I have 64 operating system
00:05:28 – which is 64 bit operating system that
00:05:30 – you can check if you are on Windows 8
00:05:33 – you just need to go to systems so search
00:05:36 – for systems not like this but systems
00:05:40 – system and in here I can see that my
00:05:43 – system type is 64-bit operating system
00:05:46 – so if it's 60 32-bit operating system
00:05:50 – you need to download 32 bits agree to
00:05:53 – credible file so mine is 64 bit so I
00:05:56 – will just click the 64-bit link and i
00:06:00 – will save this so it will take some time
00:06:03 – to download this java executable so once
00:06:09 – this will be downloaded we will be ready
00:06:12 – to execute this executable and install
00:06:15 – java so my download is complete now so i
00:06:19 – will run this executable file and i will
00:06:23 – minimize all the other things and this
00:06:27 – installation is really straightforward
00:06:29 – so you just need to click next and we'll
00:06:32 – check the status and all and then it
00:06:37 – will start installing java on
00:06:39 – system and it's really straightforward
00:06:41 – so you don't need to worry about
00:06:43 – anything while you are installing java
00:06:47 – and while installing it will ask you the
00:06:52 – destination folder where ever you want
00:06:54 – to install java on your system and jari
00:06:58 – on your system GRE stand for Java
00:07:00 – Runtime environment and JD case then
00:07:04 – Shore a java development kit so these
00:07:07 – are the two things which will be
00:07:08 – installed by this installer so I will
00:07:11 – generally leave them as default and I
00:07:13 – will click Next and then wait for the
00:07:17 – installation to complete so now Java is
00:07:24 – successfully installed in our system you
00:07:27 – will be able to see this message and
00:07:28 – then I will close this and once you
00:07:32 – install Java you can check it while
00:07:34 – going to the sea folder of your computer
00:07:38 – and then go to program files and in here
00:07:41 – you will be able to see this job of
00:07:44 – folder and in here you will be able to
00:07:46 – see two folders one is jdk folder and
00:07:50 – other is GRE folder ok so jdk i already
00:07:55 – told you is java development kit and GRE
00:07:58 – is java runtime and our environment
00:08:00 – right so i will change the name of these
00:08:04 – jdk and GRE to you know make them short
00:08:08 – and really easy to you know understand
00:08:11 – so i will rename my jdk folder as jdk 8
00:08:16 – ok so it's just jdk 8 and i will rename
00:08:22 – my GRE folder as GRE 8 because the
00:08:27 – version of this java is java eat ok and
00:08:32 – here i can just make them us large icon
00:08:40 – so you can see or extra large so you can
00:08:43 – see that i am named this as jdk 8 and
00:08:48 – GRE eight folders right so why
00:08:52 – you have done that you need to set your
00:08:56 – environment variables so that whenever
00:08:59 – you run your Java program it will
00:09:03 – recognize the jeddak and GRE and then
00:09:07 – you will be able to compile your
00:09:08 – programs right so for that for setting
00:09:12 – your environment variables what you need
00:09:14 – to do is we just need to go to your
00:09:17 – system so go to search and search for
00:09:20 – system once again if you have been on
00:09:22 – windows 7 or windows XP we didn't also
00:09:27 – need to search for system in control
00:09:31 – panel and then go to advanced settings
00:09:35 – and in here go to environment variables
00:09:39 – okay and invite an environment variable
00:09:42 – in system variable here you will be able
00:09:45 – to find a variable called path you just
00:09:49 – need to click or double click this path
00:09:51 – or add it or click this add button and
00:09:55 – in here you will be able to see variable
00:09:58 – name is equal to park and the variables
00:10:03 – values there will be already some values
00:10:05 – in here and you need to add some more
00:10:09 – value here which is the JDK so go to
00:10:15 – once again program file and Java folder
00:10:19 – where ever you have installed it and
00:10:20 – then go to jdk 8 which is the folder
00:10:23 – weenie renamed and in here inside this
00:10:26 – jdk 8 go to bin folder and this
00:10:29 – destination which is c program files
00:10:32 – java /g IDK a slash bin we just need to
00:10:37 – copy this path from here and then in
00:10:40 – your variable value just give a
00:10:44 – semicolon and paste your path which is
00:10:47 – the same path you have copied from here
00:10:50 – right once again go to your java folder
00:10:55 – once again and then this time go to JRE
00:10:59 – okay and in here also you will be able
00:11:01 – to find a binary folder bin folder and
00:11:04 – then copy the
00:11:06 – part from here and then give semicolon
00:11:10 – to your variable value whatever well us
00:11:13 – present already here and paste this path
00:11:15 – also okay so you need to give this c
00:11:20 – program files / java / grea slash bin
00:11:23 – folder and c program files / java / jdk
00:11:29 – 8 / bin folder path here in environment
00:11:33 – variable and why do we set environment
00:11:36 – variable is whenever you compile a
00:11:39 – program whenever you compile a program
00:11:42 – if you set environment variable your
00:11:46 – compiler knows the path of these binary
00:11:48 – files which are responsible for
00:11:50 – compiling your program and it will be
00:11:53 – straightforward to compile your program
00:11:55 – now once you have done set your
00:11:58 – environment variable we will open once
00:12:01 – again command prompt and check whether
00:12:04 – Java is really installed in our system
00:12:06 – or not so it once again give java sea
00:12:09 – and press ENTER and this time I can see
00:12:13 – a big you know response in response to
00:12:17 – my java sea command and i can see that
00:12:21 – it's saying that the users of this Java
00:12:24 – Sea is you need to give some options and
00:12:27 – source files so Java Sea is a command to
00:12:30 – compile a program or Java programs so
00:12:34 – whenever you give a Java C dash some
00:12:37 – helloworld dot java file it will compile
00:12:41 – or java program and then you can run
00:12:44 – your java program right that's why we
00:12:47 – use the Java Sea c'mon so in this way
00:12:50 – you can install Java on your system now
00:12:54 – in the next video I'm going to show you
00:12:56 – how you can install our an IDE which is
00:12:59 – called Eclipse IDE which is widely used
00:13:02 – to develop Java programs so stay tuned
00:13:05 – and please rate comment and subscribe
00:13:06 – and bye for now


Video Url:
http://youtu.be/To4QyQaMSco

Comments

comments