Community
Participate
Working Groups
The Generate AJDoc wizard asks the user to provide the location of tools.jar, however tools.jar doesn't exist as part of the Java installation on the Mac so the user cannot proceed with the wizard.
After a brief look.... The underlying code in ajdoc (on aspectj's side) looks for com.sun.tools.javadoc.Main which, on windows and linux is contained within the tools.jar. What the AJdocWizard does in AJDT is ask for the location of the tools.jar and then adds it to the list of vmargs. What might be the fix is that within the AJdocWizard, instead of asking for the location of tools.jar, to instead on the MAC, ask for the location of this class - or the directory which it is in. Possibly, another alternative as Sian pointed out, is to ask in the wizard for where java is installed and then under the covers look for the relevant place.
On macs, there is no tools.jar. Instead, the desired class is in classes.jar. Need to point to that instead. The correct location should be something like: /System/Library/Frameworks/JavaVM.framework/Versions/Classes/classes.jar Need to change the Wizard to reflect this. Also, there is a bit of hard coding of paths in the AJDoc implementation that doesn't work on macs. Need to change this as well.
Created attachment 102708 [details] This patch fixes the hard coding of paths so that ajdoc can work on macs. Also, I changed some of the UI messages.
Created attachment 102709 [details] mylyn/context/zip
patches committed. iplog