For Setting java ENVIRONMENT first, you need to download JAVA from this link https://www.java.com/en/download/. Download java from this link and Install it. After Installing the java You need to set Path for JAVA.
HOW TO SET PATH FOR JAVA IN WINDOWS.
1.Right Click on My Computer and then Select Properties.
2. Click on Advanced System Setting.
3.Click on Environment Variables.
4.Now Select the Path where you have Installed the java and Copy that location As shown in the image I have installed java in My Local Disk C.
5.Again go to step 3 where you Open the Environment variable.
6.Click on New in System Variable.
7.Now put any name Here which you want to use in Column Variable Name but In Variable Value, you have to paste the location of JAVA where You Installed it and Click on OK.
8.Again Click On OK.
9.Your PATH has been set you can see it and You also can delete it IF you are not using java.
USING THIS STEPS YOU CAN SET ENVIRONMENT OR PATH IN ANY WINDOWS I HAVE PRE-INSTALLED WINDOW 7 BUT YOU CAN USE SAME STEPS FOR WINDOWS 8 OR ALSO FOR WINDOWS 10.
STEPS FOR SETTING PATH IN UNIX OR LINUX.
1.For Setting the path in UNIX or LINUX you need to Install JAVA in your Operating System.
2.After it, you need the Following commands to set path.
3.first you need to open terminal.
4.#root export PATH=/path/to/java:$PATH.
SOME OF THE POPULAR JAVA EDITORS –
1.NOTEPAD- You all very well know about the NOTEPAD you can use it create your JAVA program It will come preinstalled on Microsoft Windows.
2.NETBEANS- It is an Open Source Java Software which is very helpful and it is faster than the NOTEPAD and it is free to download, you can download it from this link https://netbeans.org/downloads/.
3.Eclipse- It is also an Open Source java Software which is very helpful to develop java application but it is best for creating Mobile Application but you also can use it for developing simple java application, you also can download it from this linkhttp://www.eclipse.org/.
4.MY ECLIPSE- It is also software for developing the java application but you have to take license for using this software it is not freehttp://myeclipse.software.informer.com/10.0/.