Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java thread: why I can't start cloudview


Message #1 by Edward <zhangsc@n...> on Thu, 16 May 2002 11:18:00 +0800
> I run this follow command:
> F:\j2sdkee1.3.1\lib\system>java -classpath tools.jar;cloudscape.jar 
COM.cloudscape.tools.cview

> But I get a error:
>     Exception in thread "main" java.lang.NoClassDefFoundError: 
COM/cloudscape/tools/cview

> I want know why it is error,I do above operations according the 
> book "Professional Java Server Programming J2EE 1.3 Edition",the 6 
> Chapter.  If I need install other java components? I want to know that 
> if j2sdkee-1_3_1-win.exe contains Cloudview? If it is not,where can I 
> get Cloudview???

NoClassDefFoundError almost always means your classpath is incorrect. 
Either the book is incorrect, or Sun changed the directory location after 
the book was written.

I just downloaded j2sdkee-1_3_1-win.exe and installed it on my system. The 
cview class is located in \j2sdkee1.3.1\lib\cloudscape\cloudview.jar. The 
file tools.jar does not exist in the \lib\system directory. You need to 
change the classpath to include the cloudview.jar file. Something like 
this should work: 

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

(Note that the starting directory is 'cloudscape' not 'system.')

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

  Return to Index