permaculture playing cards*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse - deploying external jars - how to? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse - deploying external jars - how to?" Watch "Eclipse - deploying external jars - how to?" New topic
Author

Eclipse - deploying external jars - how to?

Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
I am using Lomboz (based on 3.1 Eclipse). Things are ok to a certain extent. But I do need help with adding external jars to my web application
deployment.

I did create some JSP's/Servlets/Beans and things are working. However, I have a dependency on some external jars - log4j stuff. I changed the Project properties and added the jars 'Add External JARs' in the "Java Build Path ->Libraries". Then selected them in "Order And Export" tab.

But they are not deployed with the application (or so I think).
I see the WEB-INF/lib dir, in Eclipse, is empty.

Due to this missing libs, my beans throw an NoClassDefFoundException.

Any help is greatly appreciated.
TIA.

- m


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31079
    
163

Madhav,
For ejb and web projects, the build path is only used at compile time. You need to specify them in the "java jar dependencies" for the jars to be available at runtime. The Java Jar Dependencies is available in the project properties (just like the build path.)


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
I saw that option and selected it but, it doesn't list any jars that I can select. The list is empty. I also see a message (error?) 'Not an enterprise project?' something like that.

So I am not sure how to select the jars in this option.
Thanks.

- m
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Ok, for now I manually copied the jars (three actually) into the WEB-INF/lib folder under the WebContent and brought up the Lomboz browser again. It seems to go further now. Please ignore this thread.

Thanks.

- m
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse - deploying external jars - how to?