Consultor Eletrônico



Kbase P34326: Unix to Unix ODBC / JDBC : error Specified driver could not be loaded
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/29/2008
Status: Verified

SYMPTOM(s):

Setting up ODBC driver on UNIX

Specified driver could not be loaded

Error when attempting to connect to database

Getting error running "java com.progress.sql.jdbc.ProgressTest" error reads:

Exception in thread "main" java.lang.NoClassDefFoundError: com/progress/sql/jdbc/ProgressTest


JDBC connection fails with error: no suitable driver

LD_LIBRARY_PATH is OK.

FACT(s) (Environment):

Linux Intel
UNIX
Progress 9.x

CAUSE:

The wrong stack model was being used and looking for the wrong Driver.

FIX:

Setting the LD_ASSUME_KERNEL parameter enables one to set an environment variable to force the use of the proper stack model.

Add LD_ASSUME_KERNEL parameter to the ODBC environment.

ie.

LD_ASSUME_KERNEL=2.2.5