Index: src/org/aspectj/ajdt/ajc/BuildArgParser.java =================================================================== RCS file: /home/technology/org.aspectj/modules/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java,v retrieving revision 1.57 diff -u -r1.57 BuildArgParser.java --- src/org/aspectj/ajdt/ajc/BuildArgParser.java 25 Aug 2006 09:50:33 -0000 1.57 +++ src/org/aspectj/ajdt/ajc/BuildArgParser.java 1 Sep 2006 11:50:17 -0000 @@ -286,11 +286,24 @@ if (parser.bootclasspath == null) { addClasspath(System.getProperty("sun.boot.class.path", ""), ret); + addClasspath(getRuntimePath(), ret); } else { addClasspath(parser.bootclasspath, ret); } +// System.err.println("? BuildArgParser.getBootclasspath() " + ret); return ret; } + + private String getRuntimePath () { + String runtimePath; + String filename = getClass().getProtectionDomain().getCodeSource().getLocation().getPath(); + File toolsFile = new File(filename); + File runtimeFile = new File(toolsFile.getParentFile(),"aspectjrt.jar"); + runtimePath = runtimeFile.getPath(); +// System.err.println("? BuildArgParser.getRuntimePath() " + runtimePath); + return runtimePath; + } + /** * If the classpath is not set, we use the environment's java.class.path, but remove * the aspectjtools.jar entry from that list in order to prevent wierd bootstrap issues