全部博文(67)
分类: Java
2012-05-25 14:15:32
hello everyone !
I'm very glad to express the procedure to install eclipse in the operate system "Redhat enterprise linux 5.4"
now let begin:
1:the first you should download the JDK 1.6, JDK 1.5 or other version
for linux and the eclipse 3.2 ,eclipse 3.1 or other version for
linux .
at this step you could download them in the linux operate system or you
cold download them in windows system ,then you could put them in one
remove disk (u pan)
2:copy them to /usr/linuxsoft the "linuxsoft" is the director I created .
3:start the terminal cd to the director /usr/linuxsoft
4: [root@localhost bin]# chmod +x jdk1.6.0_13 .bin
5:drag the jdk1.6.0_13.bin to the terminal window ,then the install JDK is start .
6:for example my istall director is /usr/linuxsoft then we should edit the PATH and CLASSPATH
7:[root@localhost bin]# vi /etc/profile
for example:you should add the follow code to the file.
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
export JAVA_HOME=/usr/linuxsoft/jdk1.6.0_13
export PATH=.:/usr/linuxsoft/jdk1.6.0_13/bin:$PATH
export CLASSPATH=.:/usr/linuxsoft/jdk1.6.0_13/lib/tools.jar:$CLASSPATH
the above code is subclock of the file ,you could enter the /etc director then edit the nemed 'profile ' file ;
8: click the "ESC" key , enter :w you could save the file you edited.
now we should install the eclipse
cd into the director that you put the installing file.then begin
1: [root@localhost bin]# tar -zvxf eclipse_tar2.3-org.tar.gz
2;then the installing start;
3: cd into the /usr/local/bin create a file named eclipse.sh
then edit it put into the code
export JAVA_HOME=/usr/linuxsoft/jdk1.6.0_13
export CLASSPATH=/usr/linuxsoft/jdk1.6.0_13/lib
/usr/linuxsoft/eclipse/eclipse -vm /usr/linuxsoft/jdk1.6.0_13/bin/java -data ~/workspace &
the workspace director was create in the root director is you work director.
4:then
[root@localhost ~]# source /usr/local/bin/eclipse.sh
5:now the GUI is showed
cd into the /usr/local/bin/ then
6:[root@localhost ~]# chmod 755 eclipse.sh
7: you could create a launchor
lick the disktop ->click mouse right -> create launchor ->browse (select the /usr/local/bin/eclipse.sh)->input the name (for example eclipse)->ok.
my English is pool ,this article is writed in the redhat enteprise linux , the chinese input tools was not installed.
时间看来2012-05-25 14:22:57
JDK:http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u32-downloads-1594644.html
Eclipse:http://www.eclipse.org/downloads/packages/release/indigo/r
初此接触,才把JDK,JRE,JVM的角色搞明白。http://java-mzd.iteye.c