Maven FAQ

Where to get sun.jdk:tools:jar:1.4.0 on MacOSX?

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

I checked out aspectj-maven-plugin from mojo sandbox, and I was trying to build it.

however, I encountered an error saying that tools.jar was not found.

to my understand, we need to install Sun's Jar separately due to the license issue. em.. ok!

but there is no tools.jar for Mac in /System/Library/Java/ Extensions. any advice? should I copy tools.jar from windows SDK to mac?

Issue Links

Activity

Hide
Allan Ramirez added a comment -

There are no tools.jar on a mac. The classes are included in the normal java runtime
( /System/Library/Frameworks/ JavaVM.framework/Classes/classes.jar.
Refer to this link http://lists.apple.com/archives/java-dev/2002/Jun/msg00901.html )

You only have to modify the <systemPath> pointing to your classes.jar on MacOSX.

<dependency>
            <groupId>sun.jdk</groupId>
            <artifactId>tools</artifactId>
            <version>1.5.0</version>
            <systemPath>/System/Library/Frameworks/JavaVM.framework/Versions/ 1.5/Classes/classes.jar</systemPath>
            <scope>system</scope>
        </dependency>
Show
Allan Ramirez added a comment - There are no tools.jar on a mac. The classes are included in the normal java runtime ( /System/Library/Frameworks/ JavaVM.framework/Classes/classes.jar. Refer to this link http://lists.apple.com/archives/java-dev/2002/Jun/msg00901.html ) You only have to modify the <systemPath> pointing to your classes.jar on MacOSX.
<dependency>
            <groupId>sun.jdk</groupId>
            <artifactId>tools</artifactId>
            <version>1.5.0</version>
            <systemPath>/System/Library/Frameworks/JavaVM.framework/Versions/ 1.5/Classes/classes.jar</systemPath>
            <scope>system</scope>
        </dependency>

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: