• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Sharing External Jar files between projects

 
Ranch Hand
Posts: 52
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to explore options to reduce my disk space during development and reuse the referencing of the external jar files from a common location.
I am using Eclipse and Weblogic application server and trying to deploy a small dynamic web application. I have created a 3rdParty project folder with a lib folder which will contain all the necessary jar files.
Question: Is there a possibility to refer my Web Application jar files to the 3rd Party project folder during development and deployment?
Applications Used:
Eclipse
Weblogic 11g running on Windows


Structure:
Project1:
3rdParty
|- lib
|- Struts-Core2.jar
|- xwork-core.jar etc....

Project2:
MyWebApp
|-src
|- Webcontent
|- jsp
|- WEB-INF
|- lib ( No Jars included)

In eclipse I have tried to reference the project1 jar files to Project2 WEB-INF/lib files by using Deployment Assembly -> Project1(Source) ->WEB-INF/lib(Deploy Path in project2). However I am not sure if this is the correct way of doing. I am still getting some errors in my jsp file as it is unable to find struts-core2.jar which is present in the Project1 folder.
Can you please help?
Thanks in advance.
 
Marshal
Posts: 25805
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Mainak Goswami wrote:I am trying to explore options to reduce my disk space during development.



Why? That seems like it's going to waste a lot of your time (you already presented the evidence that it's doing that) for no reason. Surely you aren't about to run out of disk space on your development machine?
 
Mainak Goswami
Ranch Hand
Posts: 52
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know it is not common practice to use a different lib reference other than WEB-INF\lib. But I guess definitely there is an option. I am doing it because if I use multiple projects then I can use the 3rdPartJar Projects lib folder for all future projects. In that way I can reuse the stuffs rather than using disk space unnecessarily.
Any help would be appreciated for this option.
Thanks,
Mainak
 
CAUTION! Do not touch the blades on your neck propeller while they are active. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic