I have placed a series of jars in a single eclipse project.
I.e. I have a separate eclipse project (named e.g. JARS-Project) that has in its build path a whole bunch of jars .
From another eclipse project e.g. ProjectX I add a reference to the JARS-Project in the build path.
Problem:
I can not seem to be able to use any of the libraries in JARS-Project from ProjectX.
I was expecting to be able to use all the libraries in the buildpath of JARS-Project from the ProjectX since it references it in the build path.
I can not see what other configuration I might have missed.
Don’t think it makes a different but ProjectX was created as a Spring Project
I have placed a series of jars in a single eclipse project. I.e. I
Share
You are not referencing the jars in
JARS-ProjectfromProjectX, you are referencingJARS-ProjectfromProjectX, which is different.To reference the jars in
JARS-ProjectfromProjectX, you have to reference each jar individually. So go to your build path forProjectX, then go to Libraries tab, then press “Add Jars”, then find each jar you need from theJARS-Projectproject and add individually.Note, for this to work the jar files themselves must be in the
JARS-Projectproject. IfJARS-Projectonly references the jars from elsewhere in the file system this will not work.