sqlj命令不起作用 [英] sqlj Command Doesn't Work

查看:65
本文介绍了sqlj命令不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个奇怪的问题:我系统上的sqlj命令无法正常工作。

我在WinXP上运行DB2(LUW)V8(FP8)。


我从DB2版本6(LUW)开始没有做过sqlj程序所以我检查了

手册,了解准备sqlj程序的正确技巧。当我去

尝试sqlj命令时,我得到了这个:


线程中的异常" main" java.lang.NoClassDefFoundError:

sqlj / tools / Sqlj


起初我认为这可能是一个路径问题,但当我进入

sqllib / bin目录,我得到了相同的结果,即使sqlj.exe是正确的

那里。我只是在做这个命令:


sqlj help


我查了一下谷歌,找不到任何有这个的人的记录

问题。我在手册中看不到任何关于使sqlj命令工作所需的特殊设置。我知道命令仍然存在

因为它仍然记录在手册中。


有没有人知道为什么命令不起作用?


为了它的价值,我还尝试在

samples \ java \ _sqlj目录中使用bldsqljs.bat批处理文件,但是同样的事情发生了例如,给定

这个命令:


bldsqljs SpServer rhino rhinopw


我得到:


线程main中的异常java.lang.NoClassDefFoundError:

sqlj / tools / Sqlj

线程中的异常" main" java.lang.NoClassDefFoundError:

com / ibm / db2 / jcc / sqlj / Customizer

命令的语法不正确。

命令的语法不正确。


我按照手册中的说明操作,但是sqlj和

db2sqljcustomize命令都不起作用。怎么了?

-

犀牛

I am having an odd problem: the sqlj command on my system doesn''t work.
I am running DB2 (LUW) V8 (FP8) on WinXP.

I haven''t done an sqlj program since Version 6 of DB2 (LUW) so I checked the
manuals for the proper techniques to prepare an sqlj program. When I went to
try the sqlj command, I got this:

Exception in thread "main" java.lang.NoClassDefFoundError:
sqlj/tools/Sqlj

At first I thought this might be a PATH issue but when I went into the
sqllib/bin directory, I got the same result, even though sqlj.exe is right
there. I was simply doing this command:

sqlj help

I checked Google and can''t find any record of anyone else having this
problem. I can''t see anything in the manuals about any special setup that I
have to do to make the sqlj command work. I know the command still exists
because it is still documented in the manuals.

Does anyone have any idea why the command isn''t working?

For what it''s worth, I also tried to use the bldsqljs.bat batch file in the
samples\java\sqlj directory but the same thing happens. For example, given
this command:

bldsqljs SpServer rhino rhinopw

I get:

Exception in thread "main" java.lang.NoClassDefFoundError:
sqlj/tools/Sqlj
Exception in thread "main" java.lang.NoClassDefFoundError:
com/ibm/db2/jcc/sqlj/Customizer
The syntax of the command is incorrect.
The syntax of the command is incorrect.

I''m following the instructions in the manual but both the sqlj and
db2sqljcustomize commands don''t work. What''s wrong?
--
Rhino

推荐答案

Rhino写道:
Rhino wrote:
我遇到了一个奇怪的问题:我系统上的sqlj命令无法正常工作。
我在WinXP上运行DB2(LUW)V8(FP8)。 />
自从DB2(LUW)版本6以来我没有做过sqlj程序所以我检查了手册以了解准备sqlj程序的正确技巧。当我去尝试sqlj命令时,我得到了这个:

线程中的异常main java.lang.NoClassDefFoundError:
sqlj / tools / Sqlj
I am having an odd problem: the sqlj command on my system doesn''t work.
I am running DB2 (LUW) V8 (FP8) on WinXP.

I haven''t done an sqlj program since Version 6 of DB2 (LUW) so I checked
the manuals for the proper techniques to prepare an sqlj program. When I
went to try the sqlj command, I got this:

Exception in thread "main" java.lang.NoClassDefFoundError:
sqlj/tools/Sqlj




你已经看过developerWorks上的教程吗?

< a rel =nofollowhref =http://www.ibm.com/developerworks/edu/dm-dw-dm-0412an-i.html?S_TACT=104AHW11&S_CMP=LIB\"target =_ blank> http ://www.ibm.com/developerworks/ed...HW11& S_CMP = LIB
http://www.ibm.com/developerworks/ed...HW11&S_CMP= LIB
https://www14.software.ibm.com/webap...rce=dw-db2sqlj


-

Knut Stolze

信息集成

IBM德国/耶拿大学



Did you already look at the tutorials at developerWorks?

http://www.ibm.com/developerworks/ed...HW11&S_CMP=LIB
http://www.ibm.com/developerworks/ed...HW11&S_CMP=LIB
https://www14.software.ibm.com/webap...rce=dw-db2sqlj

--
Knut Stolze
Information Integration
IBM Germany / University of Jena




" ; Knut Stolze < ST **** @ de.ibm.com>在消息中写道

news:d2 ********** @ fsuj29.rz.uni-jena.de ...

"Knut Stolze" <st****@de.ibm.com> wrote in message
news:d2**********@fsuj29.rz.uni-jena.de...
Rhino写道:
Rhino wrote:
我遇到了一个奇怪的问题:我的系统上的sqlj命令不起作用。
我在WinXP上运行DB2(LUW)V8(FP8)。

自从DB2(LUW)版本6以来我没有做过sqlj程序所以我检查了手册以了解准备sqlj程序的正确技巧。当我去尝试sqlj命令时,我得到了这个:

线程中的异常main java.lang.NoClassDefFoundError:
sqlj / tools / Sqlj
您是否已经查看了developerWorks上的教程?
I am having an odd problem: the sqlj command on my system doesn''t work.
I am running DB2 (LUW) V8 (FP8) on WinXP.

I haven''t done an sqlj program since Version 6 of DB2 (LUW) so I checked
the manuals for the proper techniques to prepare an sqlj program. When I
went to try the sqlj command, I got this:

Exception in thread "main" java.lang.NoClassDefFoundError:
sqlj/tools/Sqlj
Did you already look at the tutorials at developerWorks?


http://www.ibm.com /developerworks/ed...HW11&S_CMP=LIB http://www.ibm.com/developerworks/ed...HW11&S_CMP=LIB https://www14.software.ibm.com/webap ... rce = dw-db2sqlj



感谢您的建议,Knut,但我已经知道如何使用SQLJ的基础知识;我在DB2 V6.1中做了一些SQLJ程序。我检查了这些

链接(顺便说一下第二个就死了)但是他们似乎没有触及我的问题。


我不明白为什么这个命令:


sqlj help


不应该工作,特别是如果我在sqllib / bin目录中执行它,但

我得到此消息而不是帮助信息,无论我在哪里运行

命令:


线程main中的异常java.lang.NoClassDefFoundError:

sqlj / tools / Sqlj


它看起来像是某种安装/设置问题,但我没有任何

想知道在哪里看。文件sqlj.exe存在于sqllib / bin和sqlj.zip中

存在于sqllib / java中。还有什么我需要做的才能使

sqlj命令工作吗?


我正在运行DB2 V8(Linux,Unix和Windows)修复包8,在Windows XP上。


Rhino


Thanks for the suggestions, Knut, but I already know the basics of how to
use SQLJ; I did a few SQLJ programs back in DB2 V6.1. I checked out these
links anyway (the second one is dead by the way) but they don''t seem to
touch on my problem.

I don''t see why this command:

sqlj help

shouldn''t work, especially if I execute it in the sqllib/bin directory, but
I get this message instead of help information regardless of where I run the
command:

Exception in thread "main" java.lang.NoClassDefFoundError:
sqlj/tools/Sqlj

It looks like some kind of installation/setup issue but I don''t have any
idea where to look. The file sqlj.exe is present in sqllib/bin and sqlj.zip
is present in sqllib/java. Is there anything else I need to do to make the
sqlj command work??

I''m running DB2 V8 (Linux, Unix, and Windows) Fixpack 8, on Windows XP.

Rhino


Rhino写道:
" Knut STOLZE" < ST **** @ de.ibm.com>在消息中写道
新闻:d2 ********** @ fsuj29.rz.uni-jena.de ...
"Knut Stolze" <st****@de.ibm.com> wrote in message
news:d2**********@fsuj29.rz.uni-jena.de...
Rhino写道:

Rhino wrote:

我遇到一个奇怪的问题:我系统上的sqlj命令不起作用。
我在WinXP上运行DB2(LUW)V8(FP8) 。

自从DB2(LUW)第6版以来我没有做过sqlj程序所以我检查了手册以了解准备sqlj程序的正确技巧。当我去尝试sqlj命令时,我得到了这个:

线程中的异常main java.lang.NoClassDefFoundError:
sqlj / tools / Sqlj
I am having an odd problem: the sqlj command on my system doesn''t work.
I am running DB2 (LUW) V8 (FP8) on WinXP.

I haven''t done an sqlj program since Version 6 of DB2 (LUW) so I checked
the manuals for the proper techniques to prepare an sqlj program. When I
went to try the sqlj command, I got this:

Exception in thread "main" java.lang.NoClassDefFoundError:
sqlj/tools/Sqlj



您是否已经看过developerWorks的教程?



Did you already look at the tutorials at developerWorks?



http://www.ibm.com/developerworks/ed...HW11&S_CMP=LIB

http://www.ibm.com/developerworks/ ed ... HW11& S_CMP = LIB

https://www14.software.ibm.com/webap...rce=dw-db2sqlj

感谢您的光临建议,Knut,但我已经知道如何使用SQLJ的基础知识;我在DB2 V6.1中做了一些SQLJ程序。无论如何我检查了这些
链接(顺便说一句,第二个已经死了)但是他们似乎并没有触及我的问题。

我不是看看为什么这个命令:

sqlj help

不应该工作,特别是如果我在sqllib / bin目录中执行它,但是
我收到这条消息而不管我在哪里运行
命令,而不是帮助信息:

线程main中的异常java.lang.NoClassDefFoundError:
sqlj / tools / Sqlj

它看起来像某种安装/设置问题,但我没有任何想法在哪里看。文件sqlj.exe存在于sqllib / bin中,而sqlj.zip
存在于sqllib / java中。还有什么我需要做的才能使
sqlj命令工作吗?

我在Windows XP上运行DB2 V8(Linux,Unix和Windows)Fixpack 8。

Rhino



http://www.ibm.com/developerworks/ed...HW11&S_CMP=LIB

http://www.ibm.com/developerworks/ed...HW11&S_CMP=LIB

https://www14.software.ibm.com/webap...rce=dw-db2sqlj

Thanks for the suggestions, Knut, but I already know the basics of how to
use SQLJ; I did a few SQLJ programs back in DB2 V6.1. I checked out these
links anyway (the second one is dead by the way) but they don''t seem to
touch on my problem.

I don''t see why this command:

sqlj help

shouldn''t work, especially if I execute it in the sqllib/bin directory, but
I get this message instead of help information regardless of where I run the
command:

Exception in thread "main" java.lang.NoClassDefFoundError:
sqlj/tools/Sqlj

It looks like some kind of installation/setup issue but I don''t have any
idea where to look. The file sqlj.exe is present in sqllib/bin and sqlj.zip
is present in sqllib/java. Is there anything else I need to do to make the
sqlj command work??

I''m running DB2 V8 (Linux, Unix, and Windows) Fixpack 8, on Windows XP.

Rhino



这是 - 我猜 - 预期输出?:


Microsoft Windows XP [版本5.1.2600]

(C)版权所有1985-2001 Microsoft Corp.


C:\> sqlj help

错误:帮助不是有效的输入文件名

总共1错误。

Jan M. Nelken


Here is - I presume - expected output?:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>sqlj help
Error: help is not a valid input filename
Total 1 error.
Jan M. Nelken


这篇关于sqlj命令不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆