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

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

Explicitly including tools.jar breaks OS X because it uses a classes.jar 
instead of tools.jar.

My understanding is that a JDK will implicitly load tools.jar/classes.jar, 
whereas a JRE will not.  The patch is adding $JAVA_HOME/../lib/tools.jar to the 
classpath.  The use of ".." leads me to believe the submitter set JAVA_HOME to 
a JRE, and is using this patch to "break out" and load a JDK library.

If my understanding is correct, would someone please revert this patch?  
Otherwise, could the classpath modification use a conditional so as to not 
break OS X?

> 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
>
>
> 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