axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From frenchStudent <>
Subject Re: classe not found exception
Date Fri, 24 Jul 2009 10:15:53 GMT

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

And this is my commande in the console :

C:\Documents and
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.


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

> 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$ Source)
>        at$ Source)
>        at Method)
>        at 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:
> Sent from the Axis - Dev mailing list archive at

View this message in context:
Sent from the Axis - Dev mailing list archive at

View raw message