Hey, I guess the issue is with your CLASSPATH.
When setting the CLASSPATH, you need to add each and every jar file names rather than wild cards. Change the CLASSPATH to look something like; C:\Program Files\axis-bin-1_4\axis-1_4\lib\axis.jar;C:\Program Files\axis-bin-1_4\axis-1_4\lib\jaxrpc.jar; ....... You can have a look at the "CLASS PATH" section in the following article to find the required jars. http://lkamal.blogspot.com/2008/07/web-service-axis-tutorial-client-server.html HTH, Kamal --------------------------------------- Kamal Mettananda http://lkamal.blogspot.com On Thu, Jul 23, 2009 at 7:33 PM, frenchStudent <[email protected]>wrote: > > Hello, > > I try to follow the tutorial provided by axis in > "axis-bin-1_4\axis-1_4\docs\user-guide.html", but when I tape this command, > I have a class not found exception I can't resolve: > > > commande : > > C:\Documents and > Settings\Hichem\Bureau\axis-bin-1_4\axis-1_4\samples\userguide\example2> > java -classpath . samples.userguide.example2.CalcClient > > Exception : > Exception in thread "main" java.lang.NoClassDefFoundError: > samples/userguide/ex > Caused by: java.lang.ClassNotFoundException: > samples.userguide.example2.CalcCli > at java.net.URLClassLoader$1.run(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) > Error: Could not find the main class. > Error: A JNI error has occurred, please check your installation and try > again > > Nevertheless, I located those pathes in my CLASSPATH. (My OS is Windows > XP). > > C:\Documents and > Settings\Bureau\axis-bin-1_4\axis-1_4\samples\userguide\example2; > C:\Program Files\axis-bin-1_4\axis-1_4\lib\*.jar; > C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\*.jar; > > Thanks. > > Best regards. > -- > View this message in context: > http://www.nabble.com/classe-not-found-exception-tp24626427p24626427.html > Sent from the Axis - Dev mailing list archive at Nabble.com. > >
