本文介绍了sqlj命令不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我遇到了一个奇怪的问题:我系统上的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 themanuals for the proper techniques to prepare an sqlj program. When I went totry the sqlj command, I got this:Exception in thread "main" java.lang.NoClassDefFoundError:sqlj/tools/SqljAt first I thought this might be a PATH issue but when I went into thesqllib/bin directory, I got the same result, even though sqlj.exe is rightthere. I was simply doing this command:sqlj helpI checked Google and can''t find any record of anyone else having thisproblem. I can''t see anything in the manuals about any special setup that Ihave to do to make the sqlj command work. I know the command still existsbecause 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 thesamples\java\sqlj directory but the same thing happens. For example, giventhis command:bldsqljs SpServer rhino rhinopwI get:Exception in thread "main" java.lang.NoClassDefFoundError:sqlj/tools/SqljException in thread "main" java.lang.NoClassDefFoundError:com/ibm/db2/jcc/sqlj/CustomizerThe 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 anddb2sqljcustomize commands don''t work. What''s wrong?--Rhino推荐答案 你已经看过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 信息集成 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 StolzeInformation IntegrationIBM Germany / University of Jena 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上。 RhinoThanks for the suggestions, Knut, but I already know the basics of how touse SQLJ; I did a few SQLJ programs back in DB2 V6.1. I checked out theselinks anyway (the second one is dead by the way) but they don''t seem totouch on my problem.I don''t see why this command:sqlj helpshouldn''t work, especially if I execute it in the sqllib/bin directory, butI get this message instead of help information regardless of where I run thecommand:Exception in thread "main" java.lang.NoClassDefFoundError:sqlj/tools/SqljIt looks like some kind of installation/setup issue but I don''t have anyidea where to look. The file sqlj.exe is present in sqllib/bin and sqlj.zipis present in sqllib/java. Is there anything else I need to do to make thesqlj command work??I''m running DB2 V8 (Linux, Unix, and Windows) Fixpack 8, on Windows XP.Rhino 您是否已经看过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. NelkenHere is - I presume - expected output?:Microsoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 Microsoft Corp.C:\>sqlj helpError: help is not a valid input filenameTotal 1 error.Jan M. Nelken 这篇关于sqlj命令不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
06-28 22:33