Linux installation and configuration JDK and Eclipse steps

  

As a Java programmer, you need to install Eclipse on a Linux system, many people do not know how to install, before installing Eclipse, you need to install JDK, the following small series will introduce you How to install and configure JDK and Eclipse for Linux.

First, install the Java development environment

1, jdk-6u33-linux-i586.bin, after downloading the original directory: /home /Downloads /

2, put the downloaded file to the place you need, here the system home small series placed

cp jdk-6u33-linux-i586.bin /usr/share/JavaJDK

Note :usr: is unix software resoure, mainly put some commonly used software

3, cd /usr/share/JavaJDK change file permissions, so that it can run:

sudo chmod u+x jdk- 6u33-linux-i586.bin

Note: chmod is the ability to change files. Since the file you just downloaded cannot be executed by default, you need to add

4. Run the file. :sudo. /jdk-6u33-linux-i586.bin, here,

Note: For the suffix .bin you can run directly

/usr/share/JavaJDK

There is a bin file package jdk1.6.0_37, and the folder with the same name after decompression.

5, enter in the terminal:

sudo gedit /etc/environment

Add the following at the end of the file:

export JAVA_HOME=/usr/share/JavaJDK/jdk1.6.0_33

export JRE_HOME=/usr/share/JavaJDK/jdk1.6.0_33/jre

export CLASSPATH=. :$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
Previous12Next Total 2 Pages

Copyright © Windows knowledge All Rights Reserved