Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Building AspectJ on a Mac

Hello all,

I am attempting to build AspectJ from scratch on a Mac.
So far, I'm getting some incorrect classpath exceptions, which means I have 2 questions:
  1. In decently recent Macs, only JDK 6 (Apple JDK) and JDK 7 (Oracle JDK) are available. In choosing from these options, I configured the local.properties to use JDK 7 (I think, could not find a description on the configuration options in local.properties). Did I choose correctly, as per the local.properties below?
  2. Trying to follow the described build steps in the build/readme-build-and-test-aspectj.html document, the build bombs with the exception below. This seems to indicate that the tools.jar is not part of the classpath. Though I have found the variable jdk.tools.jar in a build.xml file, it does not seem to be used properly. Could you help me out here, please?

local.properties:
# for non-release builds, versions should all be DEVELOPMENT
# except for build.version.base
build.version=DEVELOPMENT
build.version.base=1.7
build.version.long=DEVELOPMENT
build.version.short=DEVELOPMENT
# Repo version is for maven (as built with 'ant repo')
repo.version=1.6.4
# java11.home=c:/home/apps/jdk11
# java13.home=c:/home/apps/jdk13
# java14.home=c:/home/apps/jdk14
# java15.home=c:/home/apps/jdk15
# java16.home=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
java17.home=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home


Build error
[ajbuild] ... /ajdoc/src/org/aspectj/tools/ajdoc/JavadocRunner.java:27: error: package com.sun.tools.javadoc does not exist
  [ajbuild] Class jdMainClass = com.sun.tools.javadoc.Main.class;
  [ajbuild]                                         ^
--
+==============================+
| Bästa hälsningar,
| [sw. "Best regards"]
|
| Lennart Jörelid
| EAI Architect & Integrator
|
| jGuru Europe AB
| Mölnlycke - Kista
|
| Email: lj@xxxxxxxx
| URL:   www.jguru.se
| Phone
| (skype):    jgurueurope
| (intl):     +46 708 507 603
| (domestic): 0708 - 507 603
+==============================+

Back to the top