Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java thread: cloudscape have started,but it still can't work,Why?


Message #1 by =?gb2312?B?1cXJ2bPb?= <zhangsc@n...> on Fri, 17 May 2002 09:19:24 +0800
> This is a multi-part message in MIME format.

> I meet with a question.I use j2sdkee1.3.1 which I locate in 
> F:\j2sdkee1.3.1,I want to use Cloudview to create a database,so I type 
> follows command:

> F:\j2sdkee1.3.1\lib\cloudscape>java -classpath cloudview.jar 
COM.cloudscape.tools.cview

> But my screen shows a error:
> Error loading JavaHelp: javax/help/HelpSet

> Though it shows a error,but Cloudview can still run,Then my computer
> shows Cloudview screen,I want to create a database,
> so I click File menu and choose New Database,I choose Database and in 
> the Name Column I write:
> F:\j2sdkee1.3.1\lib\cloudscape\techSupport

> then I click OK button,but it shows errors:

> java.lang.ClassNotFoundException: COM.cloudscape.core.JDBCDriver
 
> I don't know how to do it? please help me!

As stated in a previous message, ClassNotFoundException means your 
classpath is incorrect or not complete. Obviously cloudview.jar does not 
contain the class JDBCDriver. We can check this:

C:\j2sdkee1.3.1\lib\cloudscape>jar tvf cloudview.jar 
COM/cloudscape/tools/cview
   514 Fri Jun 08 12:43:46 MDT 2001 COM/cloudscape/tools/cview.class

C:\j2sdkee1.3.1\lib\cloudscape>jar tvf cloudview.jar 
COM/cloudscape/core/JDBCDriver

C:\

Note that jar gives us information on cview (meaning it's contained in 
cloudview.jar) but no information on JDBCDriver (meaning it's not 
contained in cloudview.jar) You can also use a tool such as winzip to 
inspect .jar files.

Okay, so where is JDBCDriver? Let's try some of the other .jar files:

C:\j2sdkee1.3.1\lib\cloudscape>cd ..\system

C:\j2sdkee1.3.1\lib\system>jar tvf cloudscape.jar 
COM\cloudscape\core\JDBCDriver
  1632 Mon Oct 29 19:11:58 MST 2001 COM/cloudscape/core/JDBCDriver.class

There it is. So you need to add cloudscape.jar to the classpath. 

Since cloudview runs without the help files, you could ignore the other 
warning message. But if you want to get rid of that message.... Another 
message recommnended adding jh.jar to the classpath. I can't find jh.jar 
in my j2sdkee distribution, but there is a jhall.jar. Checking it we find:

C:\j2sdkee1.3.1\lib>jar tvf jhall.jar javax\help\HelpSet
  5445 Thu Aug 23 16:58:44 MDT 2001 
javax/help/HelpSet$DefaultHelpSetFactory.class
  7626 Thu Aug 23 16:58:44 MDT 2001 javax/help/HelpSet$HelpSetParser.class
 10518 Thu Aug 23 16:58:44 MDT 2001 javax/help/HelpSet.class
   870 Thu Aug 23 16:58:44 MDT 2001 javax/help/HelpSetFactory.class
   243 Thu Aug 23 16:58:44 MDT 2001 javax/help/HelpSetException.class

It looks like jhall.jar is the other .jar file you need. Add it to the 
classpath and see if that clears up the warning message about java help.

Kevin Mukhar
Co-Author Beginning Java Databases
http://home.earthlink.net/~kmukhar

  Return to Index