Setting path in java

Setting path in java

As we all know ...Java is a very interesting programming language.Here we learn how to set path in java..




Why we need to set path:-

There is a condition that is we require to set path to use JAVA.
JAVA is more Efficient to use.
It is Secure
It was found by Sir James Gosling.
James Gosling is best computer Scientist.
for using JAVA we need to set firstly path.


So let's start...


         Here I am telling you how to set path in Windows if you are using Windows 10 most probably you have windows 64-bit so just click this last option ok and it's going to install Java JDK on your Windows 10 operating system now once it's downloaded.
         I have already downloaded it it's going to look like this it's it will be like an executable file which you can run so just just double click on it and it's going to show you this user account control just click yes and I'm going to minimize everything else and now the Java setup has been started you just need to click Next here and leave everything is default click Next you now while this installation is going on let's see how to check whether Java is already installed on your system or not so the simple way to check if Java is installed in your system is just go to your Windows Start button here and right click here and open command prompt and by the way our Java installation is asking for this next procedure so just click Next and then we will come to this command prompt and in here you just need to write Java C and press ENTER and if it gives you this result that Java C is not recognized as an internal or external command then most probably Java is not installed on your system.
 so close this command prompt so now we will check it once again once Java is installed on our system and when the Java installation is complete it will give you this message that Java SE development kit 8 update 60 successfully installed you just need to click close and now what you need to do is open your folder explorer and go to your pc or click this pc and go to see folder and go to program files and here you will be able to see this folder called java and inside this java you will see two folders one is jdk another is JRE so for simplicity you can just rename those as only JDK and JRE so JDK Jadakiss stands for Java development kit and JRE stands for Java runtime environment okay so JDK and JRE.
         Now once you have installed Java you just need to setup environment variable for Java so that whenever some program wants to look for Java it's automatically recognized by your program so to setup environment variable what you need to do is right-click on your windows button here not left click but right click right so left click will open this option but when you right click it will open this these options and in right click you will see this option called control panel just open it and in here go to system and in here click system ok so go to system and security and click system and in here you just need to click advanced system settings and in here you will be able to see this environment variables and in here go to system variables here and just go down and click the option which says path ok so just double click on it and it's going to open so we need to added this path variable system variable right so go at the last and what you need to do is you need to copy the location where you have installed this Java so go to Program Files Java and go inside JDK folder and then go inside bin folder where all the binary files are there and copy this location which is c program files slash Java slash JDK slash bin right and then give a semicolon here and then paste your path which you have copied which is C colon slash program file slash Java slash JDK slash bin okay and once again give a semicolon here and then go to the folder where you have installed Java once again and here this time go to JRE folder and inside JRE go to bin folder ok.
           And once again copy this path and after the semicolon just paste this path here ok and click OK which will save your parts and click OK once again click OK once again and you can minimize this and now once again when you open the command prompt so just open command prompt once again and then run Java C once again so Java C and press ENTER and now you can see it will give you so many options and Java C is basically a command to compile Java source files so it will give you this message that the uses of Java C is like this Java C then options then source file right so now Java JDK is installed on your system now in some cases you may want to configure Java.



Post a Comment

0 Comments