facebook

DB2 license file

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #268366 Reply

    Hello all,
    I am having problem loading the DB2 driver with its license via my build script.
    This is the error I’m getting:
    com.ibm.db2.jcc.c.SqlException: [ibm][db2][jcc][10333][11649] No license was found. An appropriate license file db2jcc_license_*.jar must be provided in the CLASSPATH setting.

    I am using the JDBC Type 4 which has two jar files, the db2jcc.jar and db2jcc_license_cu.jar

    My build.properties file contain these settings:
    db.driver=com.ibm.db2.jcc.DB2Driver
    db.driver.path=C:/db2_jdbc/db2/db2jcc.jar

    I’ve tried appending the license jar to the db.driver.path separated by semicolon and comma but it doesn’t work. Anything added added to it would cause it not to find the driver, resulting in the following error:
    Class Not Found: JDBC driver com.ibm.db2.jcc.DB2Driver could not be loaded

    I’ve also added the jar files to MyEclipse>DatabaseExplorer>Driver>IBM DB2 (Universal Driver)
    I even added the path to the CLASSPATH environment variable but nothing seem to work.
    I’m using WinXP Pro and MyEclipse 5.5

    Any help would be greatly appreciated.
    Thanks!
    -Hung

    #268418 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    Ant runs outside the MyEclipse process, so running it from within MyEclipse or from the command line should yield the same result, so try not to get focused on configuring MyEclipse with the driver, but rather making sure your script can see the drive with <classpath> tags I believe (my Ant is rusty).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: DB2 license file

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