Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » where is aspectjtools.jar?
where is aspectjtools.jar? [message #50007] Wed, 16 March 2005 02:42 Go to next message
Larry Edelstein is currently offline Larry EdelsteinFriend
Messages: 25
Registered: July 2009
Junior Member
Hi all -

I'm trying to use the Aspect/J ant task "iajc" from Eclipse. I'm using
Eclipse 3.0.1, and AJDT 1.2.0.20041214165937.

Trouble is, I don't see aspectjtools.jar in any of the plugins, and that's
where the AJ Ant tasks are supposed to be, right?

I found AjcTask in ajde.jar in AJDE 1.5 - I didn't even realize that this
was installed in my plugins - but when I try to use it, the task eventually
fails with the following message:

BUILD FAILED: <omitted>\build.xml:54: fail due to NoClassDefFoundError
"org/eclipse/core/runtime/OperationCanceledException""unexpected exception"
(1 exceptions)

SO: what gives? Why is it the Ant task calling back into Eclipse? Where is
aspectjtools.jar? Where should I get the Ant task from?

Larry Edelstein
San Francisco, CA



Here's a complete stack trace of the error:

Buildfile: C:\Documents and Settings\Larry Edelstein\My
Documents\EclipseWorkspace\Server-WhatIsIt\build.xml

init:

dirs:

compile-client:

client:

[iajc] unexpected exception

[iajc] Exception thrown from AspectJ DEVELOPMENT

[iajc] This might be logged as a bug already -- find current bugs at

[iajc]
http://bugs.eclipse.org/bugs/buglist.cgi?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] at http://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ

[iajc] To make the bug a priority, please include a test program

[iajc] that can reproduce this exception.

[iajc] org/eclipse/core/runtime/OperationCanceledException

[iajc] org/eclipse/core/runtime/OperationCanceledException

[iajc] java.lang.NoClassDefFoundError:
org/eclipse/core/runtime/OperationCanceledException

[iajc] at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java :44)

[iajc] at org.aspectj.tools.ajc.Main.run(Main.java:291)

[iajc] at org.aspectj.tools.ajc.Main.runMain(Main.java:227)

[iajc] at
org.aspectj.tools.ant.taskdefs.AjcTask.executeInSameVM(AjcTa sk.java:1162)

[iajc] at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java: 959)

[iajc] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)

[iajc] at org.apache.tools.ant.Task.perform(Task.java:364)

[iajc] at org.apache.tools.ant.Target.execute(Target.java:341)

[iajc] at org.apache.tools.ant.Target.performTasks(Target.java:369)

[iajc] at org.apache.tools.ant.Project.executeTarget(Project.java:1214 )

[iajc] at org.apache.tools.ant.Project.executeTargets(Project.java:106 2)

[iajc] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run (InternalAntRunner.java:377)

[iajc] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.mai n(InternalAntRunner.java:135)

BUILD FAILED: <omitted>\build.xml:54: fail due to NoClassDefFoundError
"org/eclipse/core/runtime/OperationCanceledException""unexpected exception"
(1 exceptions)

Total time: 741 milliseconds
Re: where is aspectjtools.jar? [message #50039 is a reply to message #50007] Fri, 18 March 2005 08:59 Go to previous messageGo to next message
Sébastien Alonzo is currently offline Sébastien AlonzoFriend
Messages: 94
Registered: July 2009
Member
Hi Larry,

I'm currently using AJDT 1.11.2 so I can't be positive about your problem,
but I wonder if you're using the proper ANT task.
It should be included in aspectjtools.jar not ajde.jar, both jars can be
found in org.aspectj.ajdeplugin in 1.11.2. Considering that aspectjrt.jar
has moved to a new plugin (org.aspectj.runtime) in 1.2.0, maybe
aspectjtools.jar has moved too. Have you tried to search your plugins
directory for aspectjtools.jar ?

Besides, looking at your error message I see that your task tries to load an
internal Eclipse class (org/eclipse/core/runtime/OperationCanceledException)
so maybe it's intended to run in Eclipse JVM and not outside. In Eclipse 3
there is a JVM option in ANT launch configuration where you specify if your
ANT build runs in Eclipse JVM or in a separate JVM (which is the default
option), so you can try to change this setting : "External tools...", "JRE"
tab, "Runtime JRE" group, "Run in the same JRE as the workspace" option.

Nevertheless, I still think you're not using the proper ANT task, it should
be able to run outside Eclipse.

"Larry Edelstein" <ribs@acm.org> wrote in message
news:d186tb$r4b$1@www.eclipse.org...
> Hi all -
>
> I'm trying to use the Aspect/J ant task "iajc" from Eclipse. I'm using
> Eclipse 3.0.1, and AJDT 1.2.0.20041214165937.
>
> Trouble is, I don't see aspectjtools.jar in any of the plugins, and that's
> where the AJ Ant tasks are supposed to be, right?
>
> I found AjcTask in ajde.jar in AJDE 1.5 - I didn't even realize that this
> was installed in my plugins - but when I try to use it, the task
eventually
> fails with the following message:
>
> BUILD FAILED: <omitted>\build.xml:54: fail due to NoClassDefFoundError
> "org/eclipse/core/runtime/OperationCanceledException""unexpected
exception"
> (1 exceptions)
>
> SO: what gives? Why is it the Ant task calling back into Eclipse? Where
is
> aspectjtools.jar? Where should I get the Ant task from?
>
> Larry Edelstein
> San Francisco, CA
>
>
>
> Here's a complete stack trace of the error:
>
> Buildfile: C:\Documents and Settings\Larry Edelstein\My
> Documents\EclipseWorkspace\Server-WhatIsIt\build.xml
>
> init:
>
> dirs:
>
> compile-client:
>
> client:
>
> [iajc] unexpected exception
>
> [iajc] Exception thrown from AspectJ DEVELOPMENT
>
> [iajc] This might be logged as a bug already -- find current bugs at
>
> [iajc]
>
http://bugs.eclipse.org/bugs/buglist.cgi?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] at http://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ
>
> [iajc] To make the bug a priority, please include a test program
>
> [iajc] that can reproduce this exception.
>
> [iajc] org/eclipse/core/runtime/OperationCanceledException
>
> [iajc] org/eclipse/core/runtime/OperationCanceledException
>
> [iajc] java.lang.NoClassDefFoundError:
> org/eclipse/core/runtime/OperationCanceledException
>
> [iajc] at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java :44)
>
> [iajc] at org.aspectj.tools.ajc.Main.run(Main.java:291)
>
> [iajc] at org.aspectj.tools.ajc.Main.runMain(Main.java:227)
>
> [iajc] at
> org.aspectj.tools.ant.taskdefs.AjcTask.executeInSameVM(AjcTa sk.java:1162)
>
> [iajc] at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java: 959)
>
> [iajc] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>
> [iajc] at org.apache.tools.ant.Task.perform(Task.java:364)
>
> [iajc] at org.apache.tools.ant.Target.execute(Target.java:341)
>
> [iajc] at org.apache.tools.ant.Target.performTasks(Target.java:369)
>
> [iajc] at org.apache.tools.ant.Project.executeTarget(Project.java:1214 )
>
> [iajc] at org.apache.tools.ant.Project.executeTargets(Project.java:106 2)
>
> [iajc] at
>
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run (InternalAntRunn
er.java:377)
>
> [iajc] at
>
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.mai n(InternalAntRun
ner.java:135)
>
> BUILD FAILED: <omitted>\build.xml:54: fail due to NoClassDefFoundError
> "org/eclipse/core/runtime/OperationCanceledException""unexpected
exception"
> (1 exceptions)
>
> Total time: 741 milliseconds
>
>
Re: where is aspectjtools.jar? [message #50136 is a reply to message #50039] Tue, 22 March 2005 16:58 Go to previous message
Eclipse UserFriend
Originally posted by: clemas.uk.ibm.com

Until a version or two ago, org.aspectj.ajde included aspectjtools.jar
and ajde.jar. There was a great deal of duplication between the two and
to reduce the size of the download we removed aspectjtools.jar -
ajde.jar is simply a subset of the contents of aspectjtools.jar. It is
not surprising to see references to eclipse classes when running the
aspectj compiler (or ant task) as our compiler is based on the JDT
compiler. I think the recommendation to run the ANT build in the same
JVM as eclipse should fix the problem. Or download a proper AspectJ
build and install it - that will give you a full standalone
aspectjtools.jar.

Andy.

Sébastien Alonzo wrote:
> Hi Larry,
>
> I'm currently using AJDT 1.11.2 so I can't be positive about your problem,
> but I wonder if you're using the proper ANT task.
> It should be included in aspectjtools.jar not ajde.jar, both jars can be
> found in org.aspectj.ajdeplugin in 1.11.2. Considering that aspectjrt.jar
> has moved to a new plugin (org.aspectj.runtime) in 1.2.0, maybe
> aspectjtools.jar has moved too. Have you tried to search your plugins
> directory for aspectjtools.jar ?
>
> Besides, looking at your error message I see that your task tries to load an
> internal Eclipse class (org/eclipse/core/runtime/OperationCanceledException)
> so maybe it's intended to run in Eclipse JVM and not outside. In Eclipse 3
> there is a JVM option in ANT launch configuration where you specify if your
> ANT build runs in Eclipse JVM or in a separate JVM (which is the default
> option), so you can try to change this setting : "External tools...", "JRE"
> tab, "Runtime JRE" group, "Run in the same JRE as the workspace" option.
>
> Nevertheless, I still think you're not using the proper ANT task, it should
> be able to run outside Eclipse.
>
> "Larry Edelstein" <ribs@acm.org> wrote in message
> news:d186tb$r4b$1@www.eclipse.org...
>
>>Hi all -
>>
>>I'm trying to use the Aspect/J ant task "iajc" from Eclipse. I'm using
>>Eclipse 3.0.1, and AJDT 1.2.0.20041214165937.
>>
>>Trouble is, I don't see aspectjtools.jar in any of the plugins, and that's
>>where the AJ Ant tasks are supposed to be, right?
>>
>>I found AjcTask in ajde.jar in AJDE 1.5 - I didn't even realize that this
>>was installed in my plugins - but when I try to use it, the task
>
> eventually
>
>>fails with the following message:
>>
>>BUILD FAILED: <omitted>\build.xml:54: fail due to NoClassDefFoundError
>>"org/eclipse/core/runtime/OperationCanceledException""unexpected
>
> exception"
>
>>(1 exceptions)
>>
>>SO: what gives? Why is it the Ant task calling back into Eclipse? Where
>
> is
>
>>aspectjtools.jar? Where should I get the Ant task from?
>>
>>Larry Edelstein
>>San Francisco, CA
>>
>>
>>
>>Here's a complete stack trace of the error:
>>
>>Buildfile: C:\Documents and Settings\Larry Edelstein\My
>>Documents\EclipseWorkspace\Server-WhatIsIt\build.xml
>>
>>init:
>>
>>dirs:
>>
>>compile-client:
>>
Re: where is aspectjtools.jar? [message #587508 is a reply to message #50007] Fri, 18 March 2005 08:59 Go to previous message
Sébastien Alonzo is currently offline Sébastien AlonzoFriend
Messages: 94
Registered: July 2009
Member
Hi Larry,

I'm currently using AJDT 1.11.2 so I can't be positive about your problem,
but I wonder if you're using the proper ANT task.
It should be included in aspectjtools.jar not ajde.jar, both jars can be
found in org.aspectj.ajdeplugin in 1.11.2. Considering that aspectjrt.jar
has moved to a new plugin (org.aspectj.runtime) in 1.2.0, maybe
aspectjtools.jar has moved too. Have you tried to search your plugins
directory for aspectjtools.jar ?

Besides, looking at your error message I see that your task tries to load an
internal Eclipse class (org/eclipse/core/runtime/OperationCanceledException)
so maybe it's intended to run in Eclipse JVM and not outside. In Eclipse 3
there is a JVM option in ANT launch configuration where you specify if your
ANT build runs in Eclipse JVM or in a separate JVM (which is the default
option), so you can try to change this setting : "External tools...", "JRE"
tab, "Runtime JRE" group, "Run in the same JRE as the workspace" option.

Nevertheless, I still think you're not using the proper ANT task, it should
be able to run outside Eclipse.

"Larry Edelstein" <ribs@acm.org> wrote in message
news:d186tb$r4b$1@www.eclipse.org...
> Hi all -
>
> I'm trying to use the Aspect/J ant task "iajc" from Eclipse. I'm using
> Eclipse 3.0.1, and AJDT 1.2.0.20041214165937.
>
> Trouble is, I don't see aspectjtools.jar in any of the plugins, and that's
> where the AJ Ant tasks are supposed to be, right?
>
> I found AjcTask in ajde.jar in AJDE 1.5 - I didn't even realize that this
> was installed in my plugins - but when I try to use it, the task
eventually
> fails with the following message:
>
> BUILD FAILED: <omitted>\build.xml:54: fail due to NoClassDefFoundError
> "org/eclipse/core/runtime/OperationCanceledException""unexpected
exception"
> (1 exceptions)
>
> SO: what gives? Why is it the Ant task calling back into Eclipse? Where
is
> aspectjtools.jar? Where should I get the Ant task from?
>
> Larry Edelstein
> San Francisco, CA
>
>
>
> Here's a complete stack trace of the error:
>
> Buildfile: C:\Documents and Settings\Larry Edelstein\My
> Documents\EclipseWorkspace\Server-WhatIsIt\build.xml
>
> init:
>
> dirs:
>
> compile-client:
>
> client:
>
> [iajc] unexpected exception
>
> [iajc] Exception thrown from AspectJ DEVELOPMENT
>
> [iajc] This might be logged as a bug already -- find current bugs at
>
> [iajc]
>
http://bugs.eclipse.org/bugs/buglist.cgi?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] at http://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ
>
> [iajc] To make the bug a priority, please include a test program
>
> [iajc] that can reproduce this exception.
>
> [iajc] org/eclipse/core/runtime/OperationCanceledException
>
> [iajc] org/eclipse/core/runtime/OperationCanceledException
>
> [iajc] java.lang.NoClassDefFoundError:
> org/eclipse/core/runtime/OperationCanceledException
>
> [iajc] at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java :44)
>
> [iajc] at org.aspectj.tools.ajc.Main.run(Main.java:291)
>
> [iajc] at org.aspectj.tools.ajc.Main.runMain(Main.java:227)
>
> [iajc] at
> org.aspectj.tools.ant.taskdefs.AjcTask.executeInSameVM(AjcTa sk.java:1162)
>
> [iajc] at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java: 959)
>
> [iajc] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>
> [iajc] at org.apache.tools.ant.Task.perform(Task.java:364)
>
> [iajc] at org.apache.tools.ant.Target.execute(Target.java:341)
>
> [iajc] at org.apache.tools.ant.Target.performTasks(Target.java:369)
>
> [iajc] at org.apache.tools.ant.Project.executeTarget(Project.java:1214 )
>
> [iajc] at org.apache.tools.ant.Project.executeTargets(Project.java:106 2)
>
> [iajc] at
>
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run (InternalAntRunn
er.java:377)
>
> [iajc] at
>
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.mai n(InternalAntRun
ner.java:135)
>
> BUILD FAILED: <omitted>\build.xml:54: fail due to NoClassDefFoundError
> "org/eclipse/core/runtime/OperationCanceledException""unexpected
exception"
> (1 exceptions)
>
> Total time: 741 milliseconds
>
>
Re: where is aspectjtools.jar? [message #587554 is a reply to message #50039] Tue, 22 March 2005 16:58 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
Until a version or two ago, org.aspectj.ajde included aspectjtools.jar
and ajde.jar. There was a great deal of duplication between the two and
to reduce the size of the download we removed aspectjtools.jar -
ajde.jar is simply a subset of the contents of aspectjtools.jar. It is
not surprising to see references to eclipse classes when running the
aspectj compiler (or ant task) as our compiler is based on the JDT
compiler. I think the recommendation to run the ANT build in the same
JVM as eclipse should fix the problem. Or download a proper AspectJ
build and install it - that will give you a full standalone
aspectjtools.jar.

Andy.

Sébastien Alonzo wrote:
> Hi Larry,
>
> I'm currently using AJDT 1.11.2 so I can't be positive about your problem,
> but I wonder if you're using the proper ANT task.
> It should be included in aspectjtools.jar not ajde.jar, both jars can be
> found in org.aspectj.ajdeplugin in 1.11.2. Considering that aspectjrt.jar
> has moved to a new plugin (org.aspectj.runtime) in 1.2.0, maybe
> aspectjtools.jar has moved too. Have you tried to search your plugins
> directory for aspectjtools.jar ?
>
> Besides, looking at your error message I see that your task tries to load an
> internal Eclipse class (org/eclipse/core/runtime/OperationCanceledException)
> so maybe it's intended to run in Eclipse JVM and not outside. In Eclipse 3
> there is a JVM option in ANT launch configuration where you specify if your
> ANT build runs in Eclipse JVM or in a separate JVM (which is the default
> option), so you can try to change this setting : "External tools...", "JRE"
> tab, "Runtime JRE" group, "Run in the same JRE as the workspace" option.
>
> Nevertheless, I still think you're not using the proper ANT task, it should
> be able to run outside Eclipse.
>
> "Larry Edelstein" <ribs@acm.org> wrote in message
> news:d186tb$r4b$1@www.eclipse.org...
>
>>Hi all -
>>
>>I'm trying to use the Aspect/J ant task "iajc" from Eclipse. I'm using
>>Eclipse 3.0.1, and AJDT 1.2.0.20041214165937.
>>
>>Trouble is, I don't see aspectjtools.jar in any of the plugins, and that's
>>where the AJ Ant tasks are supposed to be, right?
>>
>>I found AjcTask in ajde.jar in AJDE 1.5 - I didn't even realize that this
>>was installed in my plugins - but when I try to use it, the task
>
> eventually
>
>>fails with the following message:
>>
>>BUILD FAILED: <omitted>\build.xml:54: fail due to NoClassDefFoundError
>>"org/eclipse/core/runtime/OperationCanceledException""unexpected
>
> exception"
>
>>(1 exceptions)
>>
>>SO: what gives? Why is it the Ant task calling back into Eclipse? Where
>
> is
>
>>aspectjtools.jar? Where should I get the Ant task from?
>>
>>Larry Edelstein
>>San Francisco, CA
>>
>>
>>
>>Here's a complete stack trace of the error:
>>
>>Buildfile: C:\Documents and Settings\Larry Edelstein\My
>>Documents\EclipseWorkspace\Server-WhatIsIt\build.xml
>>
>>init:
>>
>>dirs:
>>
>>compile-client:
>>
Previous Topic:Compile Error with "... implements ...<E>"
Next Topic:AJDT 1.2.0 Milestones Plan ?
Goto Forum:
  


Current Time: Fri Mar 29 00:36:28 GMT 2024

Powered by FUDForum. Page generated in 0.02385 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top