Thx a lot, Brett, that works fine.
:o)
Fabrice.



                                                                       
             Brett Porter                                              
             <[EMAIL PROTECTED]                                          
             ail.com>                                                 Pour
                                       Maven Users List                
             18/09/2004 00:29          <[EMAIL PROTECTED]>        
                                                                        cc
                                                                       
                 Veuillez                                            Objet
                r�pondre �             Re: java.lang.NoClassDefFoundError:
             Maven Users List          sun/misc/CharacterEncoder       
             <[EMAIL PROTECTED]                                          
                 che.org>                                              
                                                                       
                                                                       
                                                                       
                                                                       




try setting the fork attribute on <java />

- Brett

On Fri, 17 Sep 2004 17:22:56 +0200, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I want to execute a java program, and to do so, I use the following
script
> in my maven.xml:
>
> <java classname="com.myClass">
>       <classpath>
>             <path refid="maven.dependency.classpath"/>
>       </classpath>
> </java>
>
> The problem is that I get a java.lang.NoClassDefFoundError because my
class
> uses the sun.misc.CharacterEncoder class (which is in the rt.jar archive
of
> the JRE).
>
> --> When I launch the same command at the prompt ("java -cp ... etc"),
the
> program just runs fine. But not when I want to launch it through Maven.
> Shouldn't that jar be in Maven's classpath? If yes, anyone knows where
the
> problem might come from?
>
> Thx for your answers!
> Regards,
> Fabrice.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to