facebook

[Closed] External jar file to be included with deployment

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #259937 Reply

    I’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?

    #259939 Reply

    Riyad Kalla
    Member

    Peter,
    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.

    #259942 Reply

    Great! 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.

    #259950 Reply

    Riyad Kalla
    Member

    Glad that helped, and yes it does (it’s a setting you can turn on/off from Window > Prefs > MyEclipse > J2EE > Web Projects)

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] External jar file to be included with deployment

You must be logged in to post in the forum log in