facebook

Unable to add external jar required during run time

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #316982 Reply

    sangeethaD
    Member

    Hi, I am using trail version of MyEclipse Blue.
    I have deployed a web application in Web sphere 7.0 via My eclipse.
    application requires an external jar which i placed in …\IBM\WebSphere\AppServer1\lib

    While running the application i am getting class not found exception
    Exception is ;java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver

    I placed the correct jar only.

    I am not sure the place i have kept the jar is correct. I need to know how to add external jars which are required during run time of the application.
    Your help will be greatly appreciated.

    Thanks.

    #317000 Reply

    support-swapna
    Moderator

    sangeethaD,

    1) You can add the jar to the java build path. Here is a thread which outlines the methods in Eclipse. Follow the same for MyEclipse :
    http://www.wikihow.com/Add-JARs-to-Project-Build-Paths-in-Eclipse-%28Java%29

    2) You can also add the one or more external jars as dependent java project to your EAR. Here is a thread which discusses it.
    https://www.genuitec.com/forums/topic/external-jars-and-utility-jars/

    3) If you want to add the jar to the Websphere path then have a look at this thread :
    http://fixunix.com/websphere/210029-adding-external-jar-files.html

    Let me know how this works for you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Unable to add external jar required during run time

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