#!/bin/bash
#
# 安装eclipse 2.1.2 脚本 (eclipse 2.1.2 install shell )
# filename: ei.sh (eclipse 2.1.2)
# author: alongbow
# /*...download from eclipse.org...*/
# http://www.eclipse.org/downloads/index.php
# http://www.eclipse.org/tools/downloads.html
# /*...use this command to list zip file...*/
# unzip -l eclipse-SDK-2.1.2-linux-gtk.zip
# /*...export the eclipse install directory ( ECLPDIR ) ...*/
export ECLPDIR=/data
unzip -d $ECLPDIR eclipse-SDK-2.1.2-linux-gtk.zip
unzip -d $ECLPDIR eclipse-examples-2.1.2.zip
unzip -d $ECLPDIR cdt-full-1.2-linux-gtk.zip
unzip -d $ECLPDIR/eclipse emf_1.1.1_20031020_1612WL.zip
unzip -d $ECLPDIR/eclipse emf.source_1.1.1_20031020_1612WL.zip
unzip -d $ECLPDIR/eclipse emf.doc_1.1.1_20031020_1612WL.zip
unzip -d $ECLPDIR/eclipse uml2_200312011515.zip
unzip -d $ECLPDIR/eclipse uml2.examples_200312011515.zip
unzip -d $ECLPDIR/eclipse xsd_1.1.1_20031020_1612WL.zip
unzip -d $ECLPDIR/eclipse xsd.doc_1.1.1_20031020_1612WL.zip
unzip -d $ECLPDIR/eclipse xsd.source_1.1.1_20031020_1612WL.zip
unzip -d $ECLPDIR/eclipse GEF-SDK-I20031015.zip
unzip -d $ECLPDIR/eclipse GEF-Automated-Tests-I20031015.zip
unzip -d $ECLPDIR/eclipse GEF-examples-I20031015.zip
unzip -d $ECLPDIR eclipse2.1.1-SDK-Linux-gtk-LanguagePackFeature.zip
------------------------------------------------ #!/bin/bash
# 执行 eclipse 2.1.2 脚本 (eclipse 2.1.2 run shell )
# filename: eclipse.sh (eclipse 2.1.2)
# author:
#
export ECLPDIR=/home/repository/eclipse/workspace
# /data/eclipse/eclipse -vm $JAVA_HOME/bin/java -data ~/workspace &
/data/eclipse/eclipse -vm $JAVA_HOME/bin/java -data $ECLPDIR &
# -vm 参数用以指定使用哪一个 jvm 来执行Eclipse,
# -date参数用以指定Eclipse的数据目录。在此指定其存在用户根目录(~)下的workspace目录中
#将eclipse.sh 复制到/usr/local/bin中,并为它加上权限755;现在执行 eclipse.sh 即可启动 Eclipse。'