473,395 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

db2jcc with GCJ

Hi All:

I've got a small graphical app that is used as a front-end for a DB2
database.

It compiles and runs fine with Sun Java or IBM Java. But will not work
using gcj.

The error is:

========================================

java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver not found in
[file:./, core:/]

at java.net.URLClassLoader.findClass(java.lang.String )
(/usr/lib/libgcj.so.4.0.0)

at gnu.gcj.runtime.VMClassLoader.findClass(java.lang. String)
(/usr/lib/libgcj.so.4.0.0)

at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/usr/lib/libgcj.so.4.0.0)

at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader)
(/usr/lib/libgcj.so.4.0.0)

at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.4.0.0)

at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.4.0.0)
=================================

Has anyone else had success in compiling db2jcc.jar with GCJ?

Thanks,
Barry
Nov 12 '05 #1
1 1480
"java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver not found
in
[file:./, core:/] "

make sure your CLASSPATH is set properly..... namely, to include the
db2java.zip or whatever java related file in it's CLASSPATH

regards,
dotyet

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: xixi | last post by:
hi, i am trying to do java -cp "C:\program files\ibm\sqllib\java\db2jcc.jar" com.ibm.db2.jcc.DB2Binder -url jdbc:db2://xxx:xxx/xx -user xx -password xx -size 80 under db2 command window, i have...
0
by: Prakash | last post by:
Hi: WHen using db2jcc driver (DB2 V8.1) , our java programs throws the following exception while fetching carriage return data from the database. com.ibm.db2.jcc.a.SqlException: bug check at...
2
by: Neeraj | last post by:
Hii , We have DB2 7.1 on windows and we are trying to use a type 4 driver to connect to the data base . I have included the db2jcc.jar in the class path . I am able to create a connection to...
1
by: rafikki3 | last post by:
I have a java web application that is using the db2jcc driver to get a connection to a DB2 database that is located on an RS 6000 server. The here is a portion of the code that is giving me a...
8
by: deegs_ca | last post by:
So I had my jdbc db28.2 fix pack 9 client running because I had taken the jars from <DB2ROOT>/java folder from Enterprise Edition 8.2 fix pack 9, db2java.zip, db2jcc.zip, and the license jar. ...
3
by: drudini | last post by:
We have installed DB2UDB 8.2 on a windows 2003 server. How can I confirm the version of the JDBC driver that would have been installed with this? I wasn;t sure if the JBDC driver would have a...
1
by: db2group88 | last post by:
Hi, we are using db2 ESE v8.2.3 on windows, i try to use command window to do binding D:\Program Files\IBM\SQLLIB\bnd>java -cp "D:\program files\ibm\sqllib \java\db2jcc.jar"...
1
by: chihfei.lai | last post by:
Hi all, As title!! My development environment is db2 v8.1. But my production environment is db2 v7.2. Can I use db2jcc.jar to connect to db2 v7.2? Thanks a lot. Chih-Fei.
2
by: Zunil | last post by:
Hi All, We are testing one of our component with JDBC + DB2 using db2jcc driver. We afced a strange issue. Scenario is like this. 1. We insert 1 record to a table having IDENTITY column as the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.