[ 
https://issues.apache.org/jira/browse/HADOOP-7305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056659#comment-13056659
 ] 

Daryn Sharp commented on HADOOP-7305:
-------------------------------------

I apologize for the delay -- I was unexpectedly unavailable over a week.  I did 
test that if JAVA_HOME is set to the JDK dir for Linux that this patch isn't 
strictly necessary, but it certainly doesn't hurt as a convenience if JAVA_HOME 
is set to the JRE.

+1 if the OS X section is changed to just the following:

{code}
+    <!-- The tools.jar from the JDK is called classes.jar on OS X. -->
+    <condition property="jdk.tools.jar" 
value="${java.home}/bundle/Classes/classes.jar">
+      <available file="${java.home}/bundle/Classes/classes.jar"/>
+    </condition>
{code}

Via the web, I found this to be the preferred path and I have confirmed that it 
works.

> Eclipse project files are incomplete
> ------------------------------------
>
>                 Key: HADOOP-7305
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7305
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: build
>            Reporter: Niels Basjes
>            Assignee: Niels Basjes
>            Priority: Minor
>             Fix For: 0.22.0
>
>         Attachments: HADOOP-7305-2011-05-19.patch, 
> HADOOP-7305-2011-05-30.patch, HADOOP-7305-2011-06-09.patch
>
>
> After a fresh checkout of hadoop-common I do 'ant compile eclipse'.
> I open eclipse, set ANT_HOME and build the project. 
> At that point the following error appears:
> {quote}
> The type com.sun.javadoc.RootDoc cannot be resolved. It is indirectly 
> referenced from required .class files   
> ExcludePrivateAnnotationsJDiffDoclet.java       
> /common/src/java/org/apache/hadoop/classification/tools line 1  Java Problem
> {quote}
> The solution is to add the "tools.jar" from the JDK to the 
> buildpath/classpath.
> This should be fixed in the build.xml.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to