Summary: | Classpath problem with AspectJ Compiler 1.5.0M5 | ||
---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Dhana <rdhanalakshmi> |
Component: | Compiler | Assignee: | aspectj inbox <aspectj-inbox> |
Status: | RESOLVED INVALID | QA Contact: | |
Severity: | critical | ||
Priority: | P3 | ||
Version: | 1.5.0M5 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Dhana
2005-12-06 04:37:18 EST
> I am trying to compile few dynamically generated aspects programatically. In
> the program i will contruct a classpath with aspectjrt.jar and aspecttools.jar
> and other third party jars, which my program depends on. And i compile the
> dynamically generated aspects as follows,
I presume aspecttools.jar is a typo though? and it should read aspectjtools.jar.
Take a look in the batch file for ajc, c:\aspectj1.5\bin\ajc.bat to see how ajc puts aspectjtools.jar on the classpath for invoking the compiler.
----8<-----
@echo off
REM This file generated by AspectJ installer
if "%JAVA_HOME%" == "" set JAVA_HOME=C:\Program Files\Java\j2re1.4.2_01
if "%ASPECTJ_HOME%" == "" set ASPECTJ_HOME=c:\aspectj1.5.0-dev
if exist "%JAVA_HOME%\bin\java.exe" goto haveJava
if exist "%JAVA_HOME%\bin\java.bat" goto haveJava
if exist "%JAVA_HOME%\bin\java" goto haveJava
echo java does not exist as %JAVA_HOME%\bin\java
echo please fix the JAVA_HOME environment variable
:haveJava
"%JAVA_HOME%\bin\java" -classpath "%ASPECTJ_HOME%\lib\aspectjtools.jar;%JAVA_HOM
E%\lib\tools.jar;%CLASSPATH%" -Xmx64M org.aspectj.tools.ajc.Main %*
----8<-----
This was never a bug, more of a question! I'm presuming that Andy's last comment (as of December 2005) solved the problem, if not, please post to the users or dev list. Thanks. |