JDBC/SQLJ error at runtime :-((

Max Scarpa

JDBC/SQLJ error at runtime :-((
Hi folks...I hate this, but Houston, we have a problem with JDBC/SQLJ
drive.

We installed some days ago the JDBC driver type-1 and all worked fine.

We decided to install the SQLJ support and the new JDBC type-2 driver. We
had many problems but all were solved

and (I think) the apply of the APAR ended ok.

BUT now the sample programs don't run and end with an error:

Java.lang.NoClassDefFoundError:sqlj/util/io/StringCharStream

with some reference to a 'JDBC Parser error'.....

As I don't know ANYTHING about Java, I don't know if this is a program
error or a problem due to the new SQLJ driver....

Did anyone meet this so-kind error before or something similar ? Any
suggestion about book/articles where I can find

some info about this error ?

Or Shall I go to some desert island (or better out of Solar System,
somewhere near Barnard's Star ) as I'm not able to

play with Java ? :-(

Thanks and regards

Max 'defeated & depressed' Scarpa
Unhappy old-style DB2 sysprog



Max Scarpa

Re: JDBC/SQLJ error at runtime :-((
(in response to Max Scarpa)
Hi Mike thanks for your reply....but I checked the profile but it seems ok.

Can you send me offline your entire /etc/profile and/or your personal
profile ?

Of course if someone in DB2-l can sand me a working profile i'll be very
happy.

I'm afraid that there are some problems in setting UNIX directories.

Thanks & Regards

Max Scarpa



Adrian Savory

Re: JDBC/SQLJ error at runtime :-((
(in response to Max Scarpa)
Max,

Here's a couple of suggestions from somebody who knows very little about
Java, but is trying hard :-)

1. Re-compile offending programs.
2. Make sure the JDBC driver's classfiles are in your CLASSPATH (the error
message suggests it might be something to do with this).

Like you I'm struggling to understand enough about Java and JDBC to get by
without becoming a fully-fledged Java programmer. There's not much info out
there but you might want to check these links that I've found:

www.java.sun.com/products/jdbc - Sun's home page for all things to do with
JDBC
www.javadevelopersjournal.com - some SQLJ and JDBC articles
www.webtechniques.com - ecommerce mag search on Java and JDBC for articles
www.iemagazine.com - another ecommerce mag (incorporating the old database
programming and design magazine)
publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/DSNJV0G2/2.2.5 - IBM's
bookmanager JDBC documentation

If anyone has any others, please share them.

Adrian Savory
ACSIS Ltd

-----Original Message-----
From: Max Scarpa [mailto:[login to unmask email]
Sent: 10 January 2001 17:27
To: [login to unmask email]
Subject: JDBC/SQLJ error at runtime :-((


Hi folks...I hate this, but Houston, we have a problem with JDBC/SQLJ
drive.

We installed some days ago the JDBC driver type-1 and all worked fine.

We decided to install the SQLJ support and the new JDBC type-2 driver. We
had many problems but all were solved

and (I think) the apply of the APAR ended ok.

BUT now the sample programs don't run and end with an error:

Java.lang.NoClassDefFoundError:sqlj/util/io/StringCharStream

with some reference to a 'JDBC Parser error'.....

As I don't know ANYTHING about Java, I don't know if this is a program
error or a problem due to the new SQLJ driver....

Did anyone meet this so-kind error before or something similar ? Any
suggestion about book/articles where I can find

some info about this error ?

Or Shall I go to some desert island (or better out of Solar System,
somewhere near Barnard's Star ) as I'm not able to

play with Java ? :-(

Thanks and regards

Max 'defeated & depressed' Scarpa
Unhappy old-style DB2 sysprog






------------------------------------------------------------------------
Privileged or confidential information may be contained in this message or
its attachments.

If you are the addressee of this message and you would prefer not to
receive e-mails from workthing at this address please notify the sender by
return.

If you are not the addressee indicated in this message (or responsible for
delivery of the message to the addressee), you may not copy this message
or deliver it to anyone other than the addressee. In such case,
please delete this message and notify the sender by reply email.
Please take all appropriate steps to check any attachments to this message
for viruses or other damaging code.


Workthing Limited
Registered in England and Wales
Registered Number: 3873867
Registered Office: 164 Deansgate, Manchester, M60 2RR