Community
Participate
Working Groups
AspectJ compiler 1.1beta4 AspectJ compiler does not seem to properly accept multiple directory/JAR path entries in the -classpath option. The following command line: ajc -classpath bin;c:\aspectj1.1\lib\aspectjrt.jar -sourceroots src -d bin Generates the following error message: invalid option or directory does not exist: c:\aspectj1.1\lib\aspectjrt.jar While inverting the paths: ajc -classpath c:\aspectj1.1\lib\aspectjrt.jar;bin -sourceroots src -d bin produces the same stack trace as bug 30765.
Try quoting the classpath. I'm not sure how your shell is handling the internal ';'. (The message instead suggests that the aspectjrt.jar does not exist, but I assume you verified that.) I tried this in 1.1beta4 and it worked for me from the DOS command line. (I thought it would not because the classpath entry is not quoted.) (From a cygwin bash command line, the backslashes need to be escaped and the classpath entries need to be quoted.) Here's the DOS command that worked: J:\home\wes\dev\tools\aj>.\bin\ajc -classpath bin;j:\home\wes\dev\tools\aj\lib\aspectjrt.jar -sourceroots doc/examples/bean -d bin If either quoting or correcting the path works for you, feel free to close the bug.
I believe that Wes's suggestion of quoting the classpath fixes this bug. This is a result of using a batch file to call the compiler instead of the .exe that java uses. Fixing this bug would be a huge amount of work in return for a very small usability gain. It's being marked as P5 and a request for enhancement.
Sorry, I had problems with my connection when trying to add my answer to Wes' comments some time ago, and forgot to try again later. You are right, the problem does not happen when passing the arguments between quotes. Thanks.
This should now be resolved as INVALID rather than LATER.
LATER/REMIND bugs are being automatically reopened as P5 because the LATER and REMIND resolutions are deprecated.