Java Software Installation by Satish Sir
Java Software Installation by Satish Sir
Java Software Installation by Satish Sir
Java name
Principle
production
Code
name
Released data
Editions
Java 1.0
oak
January 23,1996
No
editions
Java 1.1
oak
february 19,1997
No
editions
Java 2
platform 1.2
J2sdk 1.2,j2sre
1.2
playgrou
nd
December 8 ,
1998
Java 2
platform 1.3
J2sdk 1.3,j2sre
1.3
kestrel
May 8,2000
J2ME
J2SE
J2EE
J2ME
J2SE
J2EE
Java 2
platform 1.4
J2sdk 1.4,j2sre
1.4
Merlin
February 6,2002
J2ME
J2SE
J2EE
Java 5
Tiger
September30,20
04
JME
JSE
JEE
Java 6
Mustang
December
11,2006
JME
JSE
JEE
Java 7
Dolphin
July 28,2011
JME
JSE
JEE
JDK1.8,JRE 1.8
No official
code name
for Java 8.
18 March 2014
JME
JSE
JEE
Java8
JDK(java development tool kit):jdk is nothing but a collection of programs which are ultimately required for
developing and executing a java application
So without JDK we cant develop a java application.java developers need JDK for
developing a java application.
JVM is also a part of JDK.
JRE (Java Runtime Environment/engine): JVM along with the corresponding libraries is known as JRE
JRE can only execute the bytecode. this the clients need only JRE for
executing a java application(Byte code)
Java software(JDK)installation and its folder hierarchy follow below
steps to install java software JDK:
Step#1: download latest version java software from oracle.com (java is an open
source software available for free download at oracle home site(oracle.com))
The path for downloading:oracle.comdownloadsjava for developers below
window is opened
This first one exe file is windows Operating System and 2 nd linux os.
After downloading java software follow below procedure to install java
Double click on above exe file, it shows below welcome page. Click Next
In the next window it shows jdk installation folder path as shown below
Click on Next ,jdk installation is started ,after JDK installation, it install public
JRE,click Next.After JRE installation it shows below final window, click on
close(Finish installation).
.
Q) Is javac and java tools are available from outside java software
installed directory?
No, these files are not available from other folders. to check this point follow
below procedure
open command prompt (click start -> runtype cmd and then press enter
key)
By default the folder path shown is current logged in user home directory
path, for instance say C:\NIT.
If you observe the above error it means javac tool is not available outside
of java software installed directory. to solve this problem and to access all java
tools throughout OS from all folders we must update environment variables. So,
the point to be remembered is: just by installing software its binary and library
files are not available from other directories automatically. We must update
environment variable with that software binary and library files path.
existed
ClassPath Environment variables:To update library file we can use classPath Environment variables.
The classpath Environment variables are using compiler and JVM.
Note :To set classpath Envorinment temprarly we can use
C:\Nit>set classpath=%classpath%;library files location;
Set classpath will provide envrionment variables for one commad prompt.
(OR)
C:\Nit>java cp library files className;
(OR)
C:\Nit>java classpath library files className;
-cp (OR)-classpath will provide only for one java command.
features
1. It has colorful screen, It shows
a. keywords in blue color
b. predefined classes in red color
c. Strings and literals in pink color
2. It automatically manages code indentation.
3. Can add .java extension automatically
4. We can compile and execute Java program directly from Editplus
editor
5. It also has auto save option
6. Can display line numbers
Installing EditPlus software
It is a trail version software you can download it from its home page
http://www.editplus.com/
on desktop.
It opens Java editor with the default Java template as shown below
Enter class name and save this file with .java extension.
Note: It takes java extension automatically.
When you save this file you will get two files in PWD
1. .java extension file Ex: Test.java
2. .java.bak extension file
Ex: Test.java.bak
Disabling backup file creation option
To disable back up file creation follow below steps
Click on Tools -> Preferences menu item
It opens a window, set your desired font -> click Ok button to save
changes.