wood burning stoves*
The moose likes JDBC and the fly likes SQLJ and UDB 7.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "SQLJ and UDB 7.1" Watch "SQLJ and UDB 7.1" New topic
Author

SQLJ and UDB 7.1

Barry Andrews
Ranch Hand

Joined: Sep 05, 2000
Posts: 523

Hi,
I have an application that connects to a UDB 7.1 database locally. I was using Java 1.2.2, and my program compiled fine. I recently upgraded to Java 1.3 and now it will not compile. I get this error message:
Error in sqlj: invalid argument: sqlj.tools.Sqlj javasqlj.tools.Sqlj
Does anyone have any ideas? Thanks!
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Looks like a classpath problem.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Barry Andrews
Ranch Hand

Joined: Sep 05, 2000
Posts: 523

I do not believe it is a classpath problem. I can find sqlj.exe from the command line just fine, except I get the exact same error message. Also, 'which sqlj.exe' gives me the correct file. I uninstalled jdk1.3 and reinstalled jdk1.2, and my app still will not compile. (Originally, I had 1.2 and it did work. Code has not changed.) I also uninstalled db2 and reinstalled, thinking that somehow the sqlj.exe file got corrupted somehow. That also did not work. I am totally confused by this problem. If anyone can help, you will be greatly appreciated. Thanks!

Barry
Awais Bajwa
Ranch Hand

Joined: Jan 16, 2001
Posts: 191
hi Barry
I thing SQLJ translator is successfully translating but runtime
libraries are not available . Check it plz.
Awais Bajwa
Ranch Hand

Joined: Jan 16, 2001
Posts: 191
hi barry it is sqlj runtime library not availble probelum i think.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SQLJ and UDB 7.1
 
Similar Threads
Calling a JMS client from Oracle Trigger
SQLJ - Result Set closed error
DB2 UDB Admin API Wrappers
WAS on WIN2K
JDBC to connec to DB2 UDB z/OS database