• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error when using db2 database for java application

 
ravi v kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

recently i download trails of DB2(DB2Everyplace82DEWin) from IBM site.

and installed and written a sample DB code..
i mounted db2jdbc.jar in the classpath and compiled the code

but while executing this sample code i am getting the below exception

Exception in thread "main" java.lang.UnsatisfiedLinkError: no db2ejdbc in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at com.ibm.db2e.jdbc.DB2eUtil.initJDBCDriver(DB2eUtil.java:121)
at com.ibm.db2e.jdbc.DB2eDataSource.<clinit>(DB2eDataSource.java:64)
at DB2eAppl.main(DB2eAppl.java:29)

can any body resolve this problem

with regards
raviis
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What IDE you are using?
How you start the program?
 
ravi v kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using netbeans 3.6.

and using awt.frame as user interface

regards
ravi
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your DB and application is on different machines??
Exactly which statement results in exception??

Provide some code snippet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic