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]

Reply via email to