Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318933 - The container 'AspectJ Runtime Library' references non existing library
Summary: The container 'AspectJ Runtime Library' references non existing library
Status: RESOLVED INVALID
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: 2.1.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 2.1.1   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-05 14:41 EDT by Peter Hendriks CLA
Modified: 2010-07-05 22:21 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Hendriks CLA 2010-07-05 14:41:14 EDT
Build Identifier: I20100608-0911, AJDT 2.1.0

When creating a new AspectJ project or converting an existing Java project to an AspectJ project, a reference to aspectjrt.jar is attempted to added to the build path through a 'AspectJ Runtime Library'. This reference is broken. The problems view shows the following message:

Description	Resource	Path	Location	Type
The container 'AspectJ Runtime Library' references non existing library 'file:\C:\Java\eclipse-3.6\dropins\ajdt\plugins\org.aspectj.runtime_1.6.9.20100629172100.jar!\aspectjrt.jar'	AspectJIncrementalCompileErrors		Build path	Build Path Problem


Reproducible: Always

Steps to Reproduce:
1. New > AspectJ Project... Fill in random name.
2. Created project has broken build path.
Comment 1 Andrew Clement CLA 2010-07-05 15:06:24 EDT
works fine for me.  

I wonder if this relates to you installing from the zip, hmm.
Comment 2 Andrew Clement CLA 2010-07-05 15:16:37 EDT
just tried again, brand new eclipse, installed 2.1.0 from the zip, new project and the library reference is OK.

I am surprised it says 'dropins' in that reference you have though.

How did you install from the zip?  As it is a zipped update site, I expanded it locally and pointed the update manager at it.  Do I take you may have unzipped it into the dropins folder?
Comment 3 Andrew Clement CLA 2010-07-05 15:21:57 EDT
yep, if I unzip the update site into dropins, I also get this problem.  I don't think that is a recommended way to install AJDT.
Comment 4 Peter Hendriks CLA 2010-07-05 17:46:55 EDT
(In reply to comment #3)
> yep, if I unzip the update site into dropins, I also get this problem.  I don't
> think that is a recommended way to install AJDT.

Yes, I did use dropins instead of local updatesite route (like instructed on the web page). I'll make sure to avoid dropins for AJDT if you do not intend to support it.

Retested using the now working update site (great response!), problem is gone.

If you do not intend to support dropins, feel free to close this as CLOSED INVALID. I would suggest though to state this explicitly on the download page, as most plugins just work when going the dropins route.
Comment 5 Andrew Eisenberg CLA 2010-07-05 22:21:12 EDT
Thanks for getting back to us on this.  From the downloads page:

"To install from a zip file, download the zip and point your p2 installer to that file. Then proceed as if it were a normal update site."

I'll reword to explicitly say that we do not support using the dropins directory.

http://eclipse.org/ajdt/downloads/