Re: Third party jar dependencies

Lachlan Deck <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hi John,

On 21/09/2007, at 8:30 PM, John Pollard wrote:

> Yes certainly tried project clean, restarting Eclipse etc.
> I have made sure the commons digester jar is in the Libraries list  
> and also near the top in the "Order and Export" tab of the Java  
> Build Path, but Eclipse still fails to on import  
> org.apache.commons.digester.*;
> Everything works if the libs are in /Library/Java/Extensions so  
> definitely a classpath type of problem.
> You are right we are using SVN and not yet committed.
> Thanks for your reply anyway.

I'm not sure what else to suggest. If things don't turn up as  
expected I usually try:
- click in package explorer and hit F5 to refresh eclipse cache on files
- if that doesn't work, do a clean
- restarting eclipse rarely needed

You could also try creating a fresh project and import that jar and  
do a simple test.

> John
>
> On 20 Sep 2007, at 22:52, Lachlan Deck wrote:
>
>> On 21/09/2007, at 1:07 AM, John Pollard wrote:
>>
>>> Within a WO app managed with Eclipse/WOLips I am attempting to  
>>> add third party jars into a local directory.
>>>
>>> The jars are currently in /Library/Java/Extensions and while in  
>>> there, everything works fine.
>>>
>>> I created a lib directory as a top level sub-directory under my  
>>> project directory and placed the jars in there and added them to  
>>> the build path.
>>>
>>> I also updated build.xml to ensure they are bundled in the  
>>> release, but that is not important to this question.
>>>
>>> The application fails to find symbols in jars in my lib directory  
>>> that are on the build path. When the jars are in /Library/Java/ 
>>> Extensions they work ok.
>>
>> Have you tried "Project > Clean..."?
>>
>>> For example, the following line:
>>> import org.apache.commons.digester.*;
>>> Gives: The import org.apache.commons cannot be resolved.
>>> despite the digester jar being in my lib directory.
>>>
>>> One thing appears odd that may be a clue, my lib folder under the  
>>> project is displayed with a ? next to it
>>
>> Using svn? It's not added to the repository yet.
>>
>>> and the jars are not shown under it where they actually live on  
>>> the file system, they are shown at the top level (looking messy).
>>
>> Adjust the filters (See "▽ > Filters..." top right corner of  
>> Package Explorer)

with regards,
--

Lachlan Deck
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.