Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C20C10D39 for ; Tue, 9 Jul 2013 14:10:12 +0000 (UTC) Received: (qmail 25096 invoked by uid 500); 9 Jul 2013 14:10:07 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 24882 invoked by uid 500); 9 Jul 2013 14:10:04 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 24875 invoked by uid 99); 9 Jul 2013 14:10:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jul 2013 14:10:04 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xugz0212@gmail.com designates 209.85.216.47 as permitted sender) Received: from [209.85.216.47] (HELO mail-qa0-f47.google.com) (209.85.216.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jul 2013 14:09:59 +0000 Received: by mail-qa0-f47.google.com with SMTP id i13so6409702qae.13 for ; Tue, 09 Jul 2013 07:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=T3q+ejEt3R/bQdCiYuNcEIeyeaGm00ejq/CyOght/3Y=; b=GpzCH/3l3fHlWY10Ic0Xq+RmJJTpaYQOHPL4QaQrXEu8K+HOow2WRNntlJnAFr+8Ku 72WNu6MsA95bTXMlxw5qWWwnz14U5pAJA2nhaWQnS2ODdQuhFSRNGIOhkd4gwJ1Z0GjP jBUv4p0wjVUppGzoaeQIMZx2VHRDL7798AoQf4ecaQdDsVyoF5tX1MipFFJGW8bwEZ6L VJ66oPkLXVnKRMJtk5r7yJQJgL/VAfIYQ9sCBXw1gzpYffaUopTejDdD5TCIA7aW4hk1 YnqnxS+0ozE+7rApE0IZkhXE/Kqj3niwTIkqaxGyvKBxn2V0Z8Lv5H+lPBj2QWew6xQU 3OYQ== X-Received: by 10.49.86.168 with SMTP id q8mr20817647qez.32.1373378978096; Tue, 09 Jul 2013 07:09:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.49.132.165 with HTTP; Tue, 9 Jul 2013 07:09:18 -0700 (PDT) From: TonY Xu Date: Tue, 9 Jul 2013 22:09:18 +0800 Message-ID: Subject: Package Missing When Building Hadoop Plugin For Eclipse To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7bdc96da21ac0b04e114b6e4 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc96da21ac0b04e114b6e4 Content-Type: text/plain; charset=ISO-8859-1 *Hey, guys, * * * *I'm trying to build my own hadoop(1.1.2) plugin for eclipse(3.7.2), and it is always saying that some eclipse packages do not exist. Actually the eclipse path is explicitly written in both build.xml and build-contrib.xml. And I double-checked that the path is correct and all the missing packages are actually there.* * * *Here's the error message I got:* compile: [echo] contrib: eclipse-plugin [javac] Compiling 45 source files to /home/tony/Downloads/hadoop-1.1.2/build/contrib/eclipse-plugin/classes [javac] /home/tony/Downloads/hadoop-1.1.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/Activator.java:22: package org.eclipse.ui.plugin does not exist [javac] import org.eclipse.ui.plugin.AbstractUIPlugin; [javac] ^ [javac] /home/tony/Downloads/hadoop-1.1.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/Activator.java:28: cannot find symbol [javac] symbol: class AbstractUIPlugin [javac] public class Activator extends AbstractUIPlugin { [javac] ^ [javac] /home/tony/Downloads/hadoop-1.1.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/ErrorMessageDialog.java:21: package org.eclipse.jface.dialogs does not exist ...... [javac] 100 errors BUILD FAILED /home/tony/Downloads/hadoop-1.1.2/src/contrib/eclipse-plugin/build.xml:68: Compile failed; see the compiler error output for details. *Here's what my build.xml under hadoop/src/contrib/eclipse-plugin looks like:* *I add these infos to hadoop/src/contrib/build-contrib.xml:* *And also I added these infos to hadoop/src/contrib/eclipse-plugin/META-INF/MANIFEST.MF:* Bundle-ClassPath: classes/, lib/hadoop-core.jar, lib/commons-cli-1.2.jar, lib/commons-configuration-1.6.jar, lib/commons-httpclient-3.0.1.jar, lib/commons-lang-2.4.jar, lib/jackson-core-asl-1.8.8.jar, lib/jackson-mapper-asl-1.8.8.jar *I'm totally freaking out by getting this message and just wondering if anyone could help to see what is going on... THANK YOU SOOOOOO much for your help!!!!* Thanks, TonY --047d7bdc96da21ac0b04e114b6e4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hey, guys,=A0

I'm trying to = build my own hadoop(1.1.2) plugin for eclipse(3.7.2), and it is always sayi= ng that some eclipse packages do not exist. Actually the eclipse path is ex= plicitly written in both build.xml and build-contrib.xml. And I double-chec= ked that the path is correct and all the missing packages are actually ther= e.

Here= 's the error message I got:

co= mpile:
=A0 =A0 [echo] contrib: eclipse-plugin
=A0 =A0 [= javac] Compiling 45 source files to /home/tony/Downloads/hadoop-1.1.2/build= /contrib/eclipse-plugin/classes
=A0 =A0 [javac] /home/tony/Downloads/hadoop-1.1.2/src/contrib/eclipse-= plugin/src/java/org/apache/hadoop/eclipse/Activator.java:22: package org.ec= lipse.ui.plugin does not exist
=A0 =A0 [javac] import org.eclipse= .ui.plugin.AbstractUIPlugin;
=A0 =A0 [javac] =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 ^
=A0 =A0 [javac] /home/tony/Downloads/hadoop-1.1.2/src/contr= ib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/Activator.java:28: can= not find symbol
=A0 =A0 [javac] symbol: class AbstractUIPlugin
=A0 =A0 [javac] public class Activator extends AbstractUIPlugin {
=A0 =A0 [javac] =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0^
=A0 =A0 [javac] /home/tony/Downloads/hadoop-1.1.2/sr= c/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/ErrorMessageDia= log.java:21: package org.eclipse.jface.dialogs does not exist
=A0 =A0 ......
=A0 =A0 [javac] 100 errors

BUILD FAILED
/home/tony/Downloads/hadoop-1.1.2/src/contrib= /eclipse-plugin/build.xml:68: Compile failed; see the compiler error output= for details.


Here's wha= t my build.xml under hadoop/src/contrib/eclipse-plugin looks like:

<?xml version=3D"1.0" encodin= g=3D"UTF-8" standalone=3D"no"?>

<project default=3D"jar" name=3D"ecli= pse-plugin">

=A0 <import file=3D".= ./build-contrib.xml"/>

=A0 <property na= me=3D"eclipse.home" location=3D"/usr/share/eclipse"/>= ;
=A0 <property name=3D"version" value=3D"1.1.2"/= >

=A0 <path id=3D"eclipse-sdk-jars"= ;>
=A0 =A0 <fileset dir=3D"${eclipse.home}/plugins/&qu= ot;>
=A0 =A0 =A0 <include name=3D"org.eclipse.ui*.jar"/>
=A0 =A0 =A0 <include name=3D"org.eclipse.jdt*.jar"/>= ;
=A0 =A0 =A0 <include name=3D"org.eclipse.core*.jar"= ;/>
=A0 =A0 =A0 <include name=3D"org.eclipse.equinox*.= jar"/>
=A0 =A0 =A0 <include name=3D"org.eclipse.debug*.jar"/>=
=A0 =A0 =A0 <include name=3D"org.eclipse.osgi*.jar"= />
=A0 =A0 =A0 <include name=3D"org.eclipse.swt*.jar&q= uot;/>
=A0 =A0 =A0 <include name=3D"org.eclipse.jface*.jar"/>

=A0 =A0 =A0 <include name=3D"org.eclipse.team.= cvs.ssh2*.jar"/>
=A0 =A0 =A0 <include name=3D"com= .jcraft.jsch*.jar"/>
=A0 =A0 </fileset>=A0
=A0 </path>

=
=A0 <!-- Override classpath to include Eclipse SDK jars -->= ;
=A0 <path id=3D"classpath">
=A0 =A0 &= lt;pathelement location=3D"${build.classes}"/>
=A0 =A0 <pathelement location=3D"${hadoop.root}/build/classes&= quot;/>
=A0 =A0 <fileset dir=3D"${hadoop.root}"&g= t;
=A0 =A0 =A0 =A0 <include name=3D"**/*.jar" /><= /div>
=A0 =A0 </fileset>
=A0 =A0 <path refid=3D"eclipse-sdk-jars"/>
= =A0 </path>

=A0 <!-- Skip building if ecl= ipse.home is unset. -->
=A0 <target name=3D"check-cont= rib" unless=3D"eclipse.home">
=A0 =A0 <property name=3D"skip.contrib" value=3D"yes= "/>
=A0 =A0 <echo message=3D"eclipse.home unset: = skipping eclipse plugin"/>
=A0 </target>
=
=A0<target name=3D"compile" depends=3D"init, ivy-retrieve= -common" unless=3D"skip.contrib">
=A0 =A0 <e= cho message=3D"contrib: ${name}"/>
=A0 =A0 <javac=
=A0 =A0 =A0encoding=3D"${build.encoding}"
=A0 =A0 =A0srcdir=3D"${src.dir}"
=A0 =A0 =A0includ= es=3D"**/*.java"
=A0 =A0 =A0destdir=3D"${build.cla= sses}"
=A0 =A0 =A0debug=3D"${javac.debug}"
=A0 =A0 =A0deprecation=3D"${javac.deprecation}"
=A0 =A0 =A0includeantruntime=3D"on">
=A0 =A0 = =A0<classpath refid=3D"classpath"/>
=A0 =A0 </= javac>
=A0 </target>

=A0 <!-= - Override jar target to specify manifest -->
=A0 <target name=3D"jar" depends=3D"compile" un= less=3D"skip.contrib">
=A0 =A0 <mkdir dir=3D"= ;${build.dir}/lib"/>
=A0 =A0 <copy file=3D"${hado= op.root}/hadoop-core-${version}.jar" tofile=3D"${build.dir}/lib/h= adoop-core.jar" verbose=3D"true"/>
=A0 =A0 <copy file=3D"${hadoop.root}/lib/commons-cli-${commons= -cli.version}.jar" =A0todir=3D"${build.dir}/lib" verbose=3D&= quot;true"/>
=A0 =A0 <copy file=3D"${hadoop.root}= /lib/commons-configuration-1.6.jar" =A0tofile=3D"${build.dir}/lib= /commons-configuration.jar" verbose=3D"true"/>
=A0 =A0 <copy file=3D"${hadoop.root}/lib/commons-httpclient-3.= 0.1.jar" =A0tofile=3D"${build.dir}/lib/commons-httpclient.jar&quo= t; verbose=3D"true"/>
=A0 =A0 <copy file=3D"= ${hadoop.root}/lib/commons-lang-2.4.jar" =A0tofile=3D"${build.dir= }/lib/commons-lang.jar" verbose=3D"true"/>
=A0 =A0 <copy file=3D"${hadoop.root}/lib/jackson-core-asl-1.8.= 8.jar" =A0tofile=3D"${build.dir}/lib/jackson-core-asl.jar" v= erbose=3D"true"/>
=A0 =A0 <copy file=3D"${ha= doop.root}/lib/jackson-mapper-asl-1.8.8.jar" =A0tofile=3D"${build= .dir}/lib/jackson-mapper-asl.jar" verbose=3D"true"/>
=A0 =A0 <echo message=3D"${build.dir}"/>
=A0= =A0 <echo message=3D"${root}"/> =A0 =A0
=A0 =A0 = <jar
=A0 =A0 =A0 jarfile=3D"${build.dir}/hadoop-${name}-$= {version}.jar"
=A0 =A0 =A0 manifest=3D"${root}/META-INF/MANIFEST.MF">
=A0 =A0 =A0 <fileset dir=3D"${build.dir}" includes=3D&= quot;classes/ lib/"/>
=A0 =A0 =A0 <fileset dir=3D"= ;${root}" includes=3D"resources/ plugin.xml"/>
=A0 =A0 </jar>
=A0 </target>

</project>

I= add these infos to hadoop/src/contrib/build-contrib.xml:
<= div>
=A0 <property name=3D"eclipse.home" locati= on=3D"/usr/share/eclipse"/>
=A0 <property name=3D= "version" value=3D"1.1.2"/>

And also I added these infos to hadoop/src/contrib/ecli= pse-plugin/META-INF/MANIFEST.MF:

Bundle-ClassPath: classes/,
=A0lib/hadoo= p-core.jar,
=A0lib/commons-cli-1.2.jar,
=A0lib/commons-= configuration-1.6.jar,
=A0lib/commons-httpclient-3.0.1.jar,
=
=A0lib/commons-lang-2.4.jar,
=A0lib/jackson-core-asl-1.8.8.jar,
=A0lib/jackson-mapper-asl-1.8.8.jar

I'm totally freaking out by getting this message a= nd just wondering if anyone could help to see what is going on... THANK YOU= SOOOOOO much for your help!!!!


Thanks,
TonY
--047d7bdc96da21ac0b04e114b6e4--