Re: Third party jar dependencies

Lachlan Deck <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
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.