Summary: | -classpath is not uniform with javac/java | ||
---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Rafael Chaves <chaves> |
Component: | Compiler | Assignee: | Jim Hugunin <jim-aj> |
Status: | REOPENED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P5 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 98 | ||
Whiteboard: |
Description
Rafael Chaves
2003-02-01 11:12:51 EST
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. |