分类: 大数据
2014-02-12 15:02:36
下载eclipse插件源码
Yum searce eclipse
Yum install eclipse
ant jar -Dversion=2.2.0 -Declipse.home=/home/eclipselib/ -Dhadoop.home=/home/hd2/Hadoop
各种找不到类的报错
[javac] /home/hd2/download/hadoop2x-eclipse-plugin-master/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/NewDriverWizardPage.java:40: package org.eclipse.swt.layout does not exist [javac] import org.eclipse.swt.layout.GridLayout;
|
for i in `find /usr/lib64/eclipse/ | grep .jar `; do echo $i; cp $i /home/eclipselib/ ; done
干脆将eclipse下所有jar copy到一起放到/home/eclipselib/plugins下,注意编译的时候主目录选择/home/eclipselib,ant会自动到 plugins下找所有的类文件
终于编译成功
unzip -l /home/hd2/download/hadoop2x-eclipse-plugin-master/build/contrib/eclipse-plugin/hadoop-eclipse-plugin-2.2.0.jar