Community
Participate
Working Groups
I keep getting the following error: [echo] Compiling source code... [iajc] Exception thrown from AspectJ 1.1b2 [iajc] This might be logged as a bug already -- see the bug database at [iajc] http://dev.eclipse.org (product: AspectJ, component: compiler) [iajc] Bugs for exceptions thrown have titles File:line from the top stack, [iajc] e.g., "SomeFile.java:243" [iajc] If you don't find the exception below in a bug, please add a new bug [iajc] To make the bug a priority, please include a test program [iajc] that can reproduce this exception. [iajc] corrupted file parser2.rsc [iajc] corrupted file parser2.rsc [iajc] java.lang.ExceptionInInitializerError: corrupted file parser2.rsc [iajc] at org.eclipse.jdt.internal.compiler.parser.Parser.<clinit>(Unknown Source) [iajc] at org.eclipse.jdt.internal.compiler.Compiler.<init>(Unknown Source) [iajc] at org.aspectj.ajdt.internal.compiler.AjCompiler.<init>(Unknown Source) [iajc] at org.aspectj.ajdt.internal.core.builder.AjBuildManager.makeCompiler(Unknown Source) [iajc] at org.aspectj.ajdt.internal.core.builder.AjBuildManager$BatchBuilder.<init>(Unknown Source) [iajc] at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(Unknown Source) [iajc] at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(Unknown Source) [iajc] at org.aspectj.tools.ajc.Main.run(Unknown Source) [iajc] at org.aspectj.tools.ajc.Main.runMain(Unknown Source) [iajc] at org.aspectj.tools.ant.taskdefs.AjcTask.execute(Unknown Source) [iajc] at org.apache.tools.ant.Task.perform(Task.java:319) [iajc] at org.apache.tools.ant.Target.execute(Target.java:309) [iajc] at org.apache.tools.ant.Target.performTasks(Target.java:336) [iajc] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [iajc] at org.apache.tools.ant.Project.executeTargets(Project.java:1250) [iajc] at org.apache.tools.ant.Main.runBuild(Main.java:610) [iajc] at org.apache.tools.ant.Main.start(Main.java:196) [iajc] at org.apache.tools.ant.Main.main(Main.java:235) Do I have something set up in my environment wrong? I am running mac os x 10.2.4 with jdk1.4.1.
Can you run the compiler successfully from the command-line and not from ant and compile one of the example applications? I haven't seen this error reported before, but it does look like a detailed configuration issue. I'd recommend that you try working from the command-line with a small example so that you can examine exactly what's on your classpath. I'd also suggest that you try the latest version of the compiler. 1.1rc1 should be out in the next couple of days. If none of this works, then we'll want to bring this up on the aspectj-dev mailing list. This appears to be an OS X configuration issue and while the core committers to AspectJ work on Windows/Linux, I know that a number of people on the aspectj-dev list work with AspectJ on OS X quite effectively.
This bug should be fixed in the current cvs tree. The fix was to move AspectJ to the eclipse 2.1 code base rather than 2.0 where they had already fixed this error. Note: I don't have access to a Mac so this fix is unverified.
*** Bug 37504 has been marked as a duplicate of this bug. ***
I have Eclipse 2.1 and aspectj 1.1 rc2 and still get this error with every compile. i tried the ajc command line tool and the ant tasks. so i cannot get aspectj to work at all ?! i have osx 10.2.6 and java 1.4.1.
i am awfully sorry folks, i had rc1.....
This is fixed in rc2, the reopening was a mistake, see comments below.