Hi

I am working on a plugin that uses ant tasks. One of the ant tasks is running a 
java ant task, calling a javaclass that is packaged with the plugin. However I 
get a NoClassDefFoundError when I try to run it with the ant java task. So what 
I am trying to do is:

        <target name="Runjava">
                <echo>Now running</echo>
                <java jvm="${env.JAVA_HOME}/bin/java.exe"
                        classname="my.company.JavaProgram">
                        .....
                </java>
        </target>

and this is defined in the mojo.xml file, and the class is part of the plugin 
jar file.

Is there any special trick in doing this?

Hermod


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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

Reply via email to