I've tried 2 ways:
1 is the path to testclient.class
and 2 is to path example1 both failed :S

C:\axis>set classpath
classpath=C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar

C:\axis>java samples.userguide.example1.TestClient.
Exception in thread "main"
java.lang.NoClassDefFoundError: samples/userguide/exa
mple1/TestClient/

------

C:\axis>set classpath
classpath=C:\axis\samples\userguide\example1\;c:\axis\lib\axis.jar;c:\axis\lib\a
xis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-logging.jar;c:\axi
s\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.jar;c:\axis\lib\xm
l-apis.jar;c:\axis\lib\xercesImpl.jar

C:\axis>java samples.userguide.example1.TestClient
Exception in thread "main"
java.lang.NoClassDefFoundError: samples/userguide/exa
mple1/TestClient


--- Xavier Renard <[EMAIL PROTECTED]> wrote:
> Mees wrote:
> 
> >The axisclasspath already directs to the axis.jar
> and
> >alle the other jars... so i dunno what u mean with
> the
> >classpath...
> >
> well, should be on another mailing-list this
> question.
> However, trying to execute your class,there is some
> other classes that 
> need to be found and loaded (as the Service class).
> In your case, they are not
> found(NoClassDefFoundError)
> To be found, they need to be referenced by the
> environnement variable 
> CLASSPATH.
> That's all
> Be sure that your classpath contains . (for the
> current directory)
> So it should give something like
> set
>
CLASSPATH=.;/path/to/whatever/jarfile/you/want;/other/jarfile
> 
> Xavier
> 
> >
> >--- Xavier Renard <[EMAIL PROTECTED]> wrote:
> >  
> >
> >>Mees wrote:
> >>
> >>    
> >>
> >>>I've set the environmental variables
> AXISCLASSPATH,
> >>>AXIS_LIB and AXIS_HOME.
> >>>I've runned the getQuote example it worked. It
> gave
> >>>back 55.25
> >>>
> >>>But now that I've moved on to the user guide, to
> >>>      
> >>>
> >>the
> >>    
> >>
> >>>example with the TestClient.java.
> >>>It says run with the following command:
> >>>java samples.userguide.example1.TestClient 
> >>>So I did from the dir C:\axis
> >>>
> >>>I tried from other dir but it won't work I keep
> >>>getting this error, when i run the following
> >>>      
> >>>
> >>command
> >>    
> >>
> >>>C:\axis\java
> samples.userguide.example1.TestClient 
> >>>
> >>>---------------
> >>>
> >>>Exception in thread "main"
> >>>java.lang.NoClassDefFoundError:
> >>>org/apache/axis/client/Service
> >>> at
> >>>      
> >>>
>
>>samples.userguide.example1.TestClient.main(TestClient.java:70)
> >>    
> >>
> >>>--------------------------------
> >>> 
> >>>
> >>>      
> >>>
> >>add it to your classpath maybe :-)
> >>set CLASSPATH=%CLASSPATH%;%AXIS_LIB%\axis.jar;
> >>
> >>Xavier
> >>
> >>    
> >>
> 
> 
> 


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Reply via email to