aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes udb 7 jdbc issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "udb 7 jdbc issue" Watch "udb 7 jdbc issue" New topic
Author

udb 7 jdbc issue

k matt
Greenhorn

Joined: Oct 12, 2005
Posts: 22
OS WIN2K, eclipse 3.1.0 id

connection.createStatement() is giving the following error. I am getting a valid connection.

java.lang.UnsatisfiedLinkError: SQLFreeConnect
at COM.ibm.db2.jdbc.app.DB2Connection.SQLFreeConnect(Native Method)
at COM.ibm.db2.jdbc.app.DB2Connection.close2(DB2Connection.java:702)
at COM.ibm.db2.jdbc.app.DB2Connection.close(DB2Connection.java:667)
at etl.MyDbConnection.main(MyDbConnection.java:56)
Exception in thread "main"

Thanks
Matt
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61628
    
  67

"matt",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Makarand Parab
Ranch Hand

Joined: Dec 10, 2004
Posts: 121
Hi matt
Please check this url for your solution
http://eai.ittoolbox.com/groups/groups.asp?v=seebeyond-l&i=371794

Let me know if it is of any help

Regards
Makarand Parab
k matt
Greenhorn

Joined: Oct 12, 2005
Posts: 22
Which *.so file are they talking about in LD_LIBRARY_PATH, I can connect to the database by running the same app from command line, but cannot run the app from Eclipse IDE. I looked for *.so file and there are more than 200 files in the system.

Matt
Makarand Parab
Ranch Hand

Joined: Dec 10, 2004
Posts: 121
Matt
i have no idea what does file mean, i was looking at solution for your problem on google and then i gave you the feedback. U need to drop a mail to IBM support in order to figure out the given problem.

Regards
Makarand Parab
k matt
Greenhorn

Joined: Oct 12, 2005
Posts: 22
Hi Mak,
The interesting thing is the same code works from command line, but does not run from Eclipse. I know it is complaining about loading the native library. System.loadLibrary("SQLFreeConnect") will give the same error.

Thanks,
k matt
Makarand Parab
Ranch Hand

Joined: Dec 10, 2004
Posts: 121
Hi
Did u put those files/ or path in the runtime classpath of the Eclipse. Try that and see
k matt
Greenhorn

Joined: Oct 12, 2005
Posts: 22
Yes I did, the same problem.

Matt
Makarand Parab
Ranch Hand

Joined: Dec 10, 2004
Posts: 121
Matt
When you run through command line it runs in java runtime env while when u run through eclipse it runs in IBM runtime env. Ru missing something over there. Just a guess.

Regards
Makarand Parab
k matt
Greenhorn

Joined: Oct 12, 2005
Posts: 22
Hi Mak,
I tried to set run time libraries for Eclipse, but with no success. I am not sure whether I did it the right way

Matt
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30919
    
158

As this turned into an Eclipse issue, I'll move the thread to our IDEs forum for you.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
 
subject: udb 7 jdbc issue