Hi Fahad  ,

java.lang.NoClassDefFoundError --- meaning that your classes or jar file is not your class path.
However for your first problem , culprits was the package names ,
maybe you can run your program using command below :


               samples.userguide.example1.TestClient

or
cd /sample/userguide/example1 directory and execute the command above.


The second cuplrits is indeed said that class or jar file did not found in your classpath.

  Thanks.

Fahad Javed wrote:

Hi,

I successfully installed axis and ran through tests but on the first sample it is giving me the following errror.

Exception in thread "main" java.lang.NoClassDefFoundError: TestClient (wrong nam
e: samples/userguide/example1/TestClient)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)



I compiled the code and ran at .. at this it is giving me the following error
Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/Node
at org.apache.axis.client.Service.getAxisClient(Service.java:143)
at org.apache.axis.client.Service.<init>(Service.java:152)
at TestClient.main(TestClient.java:70)


Any advice would be greatly apreciated

Thanks
Fahad




Reply via email to