hi i am a beginner to EJB and i was trying to run the example program provided by sun at http://developer.java.sun.com/developer/technicalArticles/J2EE/appclient/index.html?frontpage-jdc the article presented the deployment procedure in a step by step manner and i could proceed and get it to work till the deploy step. after this step we are supposed to run the cloudscape database script and the sql script, but when i tried to run these scripts through cloudUtil.bat file. upon executing this batch file, i am getting a "COM.cloudscape.tools.ij class not found exception". the batch file is supposedly trying to find the required cloudscape-related tools.jar in a directory under J2EE_HOME which in my case is E:\j2sdkee1.3\lib\cloudscape. but i found that there is no tools.jar in this directory and after having examined the other jar files i found that the required class file is in a jar file thats actaully in another directory called E:\j2sdkee1.3\lib\system. Did anyone of you face this problem while trying out this example ? please help. thank you shahid
tools.jar is in my j2ee... stuff at d:\j2sdkee1.3\lib\system, so thats more or less the same. I run the cloudscape example but not that batchfile, if I remember correctly. After 'creating' the cloudscape database I used the viewer of cloudescape and could do all the things with a database with it. Maybe you check first if this part works. Eventually you have first to start cloudscape itself (cloudscape -start in the .../bin directory)?
"jinnjee", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements. Thanks.
I got the same problem, when I run "ant create-web-db" in the j2ee tutorial, got the error: <code> D:\j2eetutorial>cd examples D:\j2eetutorial\examples>ant create-web-db Buildfile: build.xml init: create-web-db: [java] java.lang.NoClassDefFoundError: COM/cloudscape/tools/ij [java] Java Result: 1 BUILD SUCCESSFUL Total time: 2 seconds </code> Althought I have <code> %J2EE_HOME%\lib\system\cloudutil.jar;%J2EE_HOME%\lib\system\cloudscape.jar;%J2EE_HOME%\lib\cloudscape\RmiJdbc.jar </code> in my classpath and the command <code> cloudscape -isql </code> works. can anybody help me? Lucy
"COM.cloudscape.tools.ij" is a class in J2EE_HOME/lib/system/cloudutil.jar You must include the jar in your classpath
Originally posted by jinnjee:
hi i am a beginner to EJB and i was trying to run the example program provided by sun at http://developer.java.sun.com/developer/technicalArticles/J2EE/appclient/index.html?frontpage-jdc the article presented the deployment procedure in a step by step manner and i could proceed and get it to work till the deploy step. after this step we are supposed to run the cloudscape database script and the sql script, but when i tried to run these scripts through cloudUtil.bat file. upon executing this batch file, i am getting a "COM.cloudscape.tools.ij class not found exception". the batch file is supposedly trying to find the required cloudscape-related tools.jar in a directory under J2EE_HOME which in my case is E:\j2sdkee1.3\lib\cloudscape. but i found that there is no tools.jar in this directory and after having examined the other jar files i found that the required class file is in a jar file thats actaully in another directory called E:\j2sdkee1.3\lib\system. Did anyone of you face this problem while trying out this example ? please help. thank you shahid
"apie", JavaRanch has a naming policy to make it easier for people to recognise each other and avoid confusion. Please take a quick look at this and edit your profile. Thanks Simon
Im having this same problem. The strange part is that this works fine at work (win nt4) but at home where I have win xp, I can't make this table-creating process working :| Has anyone solved this problem?
I got the same problem even if I have all the classpath needed. Would you like to help me? Karen
Originally posted by Martin Schneider: Im having this same problem. The strange part is that this works fine at work (win nt4) but at home where I have win xp, I can't make this table-creating process working :| Has anyone solved this problem?