- This topic has 3 replies, 2 voices, and was last updated 18 years, 8 months ago by
Riyad Kalla.
-
AuthorPosts
-
Peter L. BergholdMemberI’ve probably overlooked something, but here goes:
I have a couple of jar files that do some nifty things. Let’s take one at a time to keep this simple. One of them allows me to write Microsoft Excel spreadsheets on the fly. Given what my website does, this is beautiful thing.
How do I “include” this jar file in my deployment?
I did a search on this topic and found a thread that dated back to 2004 in which the answer was “we can’t do that yet, but we should have that feature added by May.” I assume by now May has come and gone.
How to do?
Riyad KallaMemberPeter,
You can add this to your deployment in a few ways. If this JAR is from a 3rd party the suggested way is to drop it into your WEB-INF/lib directory and then that will get deployed.If this JAR is a 3rd party library but you don’t want to copy it to your WEB-INF/lib dir for whatever reason, then add it to your classpath, and adjust your deployment rules under your project properties, MyEclipse > Web > Deployment to deploy external JARs.
If this JAR is the result of compressing another project you have in your workspace, then you can add the project as a dependency of your Web project, and then adjust your deployment rules under your web project’s properties, then MyEclipse > Web > Deployment.
So there are different ways to accomplish this, but I woul suggest using the 1st way, just putting it in your WEB-INF/lib dir if it’s some 3rd party lib like the Jakarta POI libraries or something.
Peter L. BergholdMemberGreat! That was what I was hoping for.
It would seem that adding a jar file to the WEB-INF/lib directory automagically adds it to the build path as well from what I can tell.
Riyad KallaMemberGlad that helped, and yes it does (it’s a setting you can turn on/off from Window > Prefs > MyEclipse > J2EE > Web Projects)
-
AuthorPosts