| Bundle 'org.aspectj.runtime' cannot be resolved [message #72568] |
Mon, 10 November 2008 11:48  |
Hao Missing name Messages: 115 Registered: July 2009 |
Senior Member |
|
|
I download aspectj for eclipse 3.2 and install it in the following way.
I unzip the file to a directory as
D:/softs/aspectj32
and create a link file called aspectj.link, put the file in the links
diretory of eclipse. The content of the file is
path=D:/softs/aspectj32
After I conver my eclipse plug-in dev poject into aspectj, the manifest.mf
contains org.aspectj.runtime as require-bundle.
But I got error as
Bundle 'org.aspectj.runtime' cannot be resolved
I highly appreciate if some one can help to resolve the problme.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Bundle 'org.aspectj.runtime' cannot be resolved [message #878167 is a reply to message #72568] |
Mon, 28 May 2012 14:28   |
valentin Mising name Messages: 22 Registered: December 2011 |
Junior Member |
|
|
ajdt installed via download.eclipse.org/tools/ajdt/37/update
The error I see:
The container 'AspectJ Runtime Library' references non existing library 'file:\C:\Eclipse\SDK-3.7.2-win32-x86_64\plugins\org.aspectj.runtime_1.6.12.20110613132200.jar!\aspectjrt.jar'
I see that the aspectjrt.jar exists within the org.aspectj.runtime_1.6.12.20110613132200.jar. I also installed aspectJ, which also contains the jar albeit in another dir, and expanded my classpath to it. Still no effect.
Thanks.
Update I see in file monitor that C:\Eclipse\SDK-3.7.2-win32-x86_64\file:\C:\Eclipse\SDK-3.7.2-win32-x86_64\plugins\org.aspectj.runtime_1.6.12.20110613132200.jar!\aspectjrt.jar is failed to open. We see some artifacts in this URL. I furnthermore see an error icon over the AspectJ Runtime Library in Build Path. How can I fix it?
Update2 I have removed the faulty AspectJ Runtime Library from Build Path and added external /root/aspectj/lib/aspectjrt.jar instead. It compiles now (aspects do not intercept anything, though, because I am a new user).
[Updated on: Mon, 28 May 2012 15:15] Report message to a moderator
|
|
|
|
| Re: Bundle 'org.aspectj.runtime' cannot be resolved [message #878221 is a reply to message #878191] |
Mon, 28 May 2012 17:23  |
Andrew Eisenberg Messages: 306 Registered: July 2009 |
Senior Member |
|
|
Does the file C:\Eclipse\SDK-3.7.2-win32-x86_64\file:\C:\Eclipse\SDK-3.7.2-win32-x86_64\plugins\org.aspectj.runtime_1.6.12.20110613132200.jar exist? It shouldn't. Instead, there should be a directory with the same name (minus the .jar). ie, you should see this:
C:\Eclipse\SDK-3.7.2-win32-x86_64\file:\C:\Eclipse\SDK-3.7.2-win32-x86_64\plugins\org.aspectj.runtime_1.6.12.20110613132200/
If you see the jar file, and not the directory, that means AJDT has been installed incorrectly. Try uninstalling and reinstalling AJDT from the update site.
ps- odd that my reply came after yours.
|
|
|
Powered by
FUDForum. Page generated in 0.02143 seconds