Hello Kamal, >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; ....... thanks for your response. I did so and it runs perfectly with the Eclipse IDE but with the console, I have still the same error (classe not found exception). (I'm in windows XP). Nevertheless, in my CLASSPATH, I have : 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\axis.jar;C:\Program Files\axis-bin-1_4\axis-1_4\lib\axis-ant.jar;C:\Program Files\axis-bin-1_4\axis-1_4\lib\commons-discovery-0.2.jar;C:\Program Files\axis-bin-1_4\axis-1_4\lib\commons-logging-1.0.4.jar;C:\Program Files\axis-bin-1_4\axis-1_4\lib\jaxrpc.jar;C:\Program Files\axis-bin-1_4\axis-1_4\lib\log4j-1.2.8.jar;C:\Program Files\axis-bin-1_4\axis-1_4\lib\saaj.jar;C:\Program Files\axis-bin-1_4\axis-1_4\lib\wsdl4j-1.5.1.jar; And this is my commande in the console : C:\Documents and Settings\Hichem\Bureau\axis-bin-1_4\axis-1_4\samples\userguide\example2>java -cp axis-ant.jar;axis.jar;commons-scovery-0.2.jar;commons-logging-1.0.4.jar;jaxrpc.jar;log4j-1.2.8.jar;saaj.jar;wsdl4j-1.5.1.jar; samples.userguide.example2.CalcClient -p8080 add 2 5 >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 Yes, thanks, it's very interresting and easy to follow for a beginner ! I would like to understand why it works well with Eclipse IDE but it doesn't with the console. Thanks in advance. Best regards. On Thu, Jul 23, 2009 at 7:33 PM, frenchStudent <halem.bouh...@gmail.com>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. > > -- View this message in context: http://www.nabble.com/classe-not-found-exception-tp24626427p24642046.html Sent from the Axis - Dev mailing list archive at Nabble.com.