Java compiler: – Sun microsystem has provided the java compiler and interpreters in the form of development kit called as JDK (Java Development Kit).The JDK is a collection of compiler interpreters API (Application Programming Interface) if also contain various resources needed for the developed on the java program.
This JDK has various versions in the form ranging from JDK 1.02 to JDK 1.8. Jdk 1.0 was introduced with the name oak and it was a trial version. The JDK 1.8 is called as service and maintenance version. That has not been used for commercial development. Nowadays the JDK 1.5 is standard version for software development.
The part from it four editors are available for commercial development of the java programs.
- Eclipse Eclipse Foundation
- My eclipse My Eclipse Foundation
- Net beans Sun microsystem/ Oracle Corp.
- STS Spring Technologies
Installation of Java:- When the java program is installed then up to version four. It creates the folder named JDK 1.x in which the java is stored from 1.5 and onward. It creates a folder name java in the program files and within the java, folder JDK is installed.
C/ Program files/ Java / Jdk 1.x / Jre x
Setting the path of JDK:-From window vista and onward the operating system more through for administrator and does not allow user file to be stored in it. In such a case the java file must be stored at some other location then javac not recognized by the machine. To overcomes this problem the java compiler must mode global show that it should be recognized by all the location. To perform this task path is used.
Path: – Path is an environment variable that is used to set the location of a .exe file. That can be accessed everywhere in the machine.
To set the path use we used: –
Control panel => System => Advance System setting => Environment variable => System variable => path => Edit
Dialog box opened
Paste the location of JDK
Writing the java program: – To write and store the java program we select a drive say E: make a folder named my java in it. Store all the file in it.