1-Installation of java (jdk)
Download the latest Java software (JDK) from oracle home site (http://www.oracle.com/technetwork/java/javase/downloads/index.html)
Set the path, path is required for using tools i.e javac, java etc.,
For setting path permanently, perform these steps>
* Go to My computer/This PC ‘properties’ -> ‘advanced system settings’ -> ‘Environment Variables ‘-> ‘New’: it should be like following:
“Variable name: path
“Variable Value: (path of bin folder of JDK) i.e C:\Program Files\Java\jdk1.7.0_79\bin
Step 1- Go to Application -> Accessories -> Terminal.
Step 2-Type command as below..
sudo apt-get install openjdk-8-jdk
Note-change 8 in above line with current java version.
Step 3- For “JAVA_HOME” (Environment Variable) type command as shown below, in “Terminal” using your installation path…
(Note: the default path is as shown, but if you have install OpenJDK at other location then set that path.)
export JAVA_HOME = /usr/lib/jvm/java-8-openjdk
Step 4- For “PATH” (Environment Value) type command as shown below,
in “Terminal” using your installation path…
Note: the default path is as shown, but if you have install OpenJDK at other location then set that path.)
export PATH = $PATH:/usr/lib/jvm/java-8-openjdk/bin
You are done !! Now to check whether installation is done correctly, type java -version in the Terminal.You will see that java is running on your machine.
2-Installation of eclipse
Windows and Linux User
Download the latest eclipse (Eclipse IDE for Java Developers) from eclipse home site (http://www.eclipse.org/downloads/packages/)