You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Paulo Jorge Guedes <Pa...@artelecom.pt> on 2006/01/12 15:45:20 UTC

Classpath

Hi,

I created an enterprise project with NetBeans and I need to build it
with ant, from the command line.
I'm having a problem with the classpath. I need to import javax.ejb.*
but it won't find the proper jar (j2ee.jar).
The only way I can make ant to find it is setting the attribute
"classpathref" in the "javac" element, inside my target. The problem is
that I can't tweak the script file that defines the javac action because
it is automatically generated by netbeans. I can only hack a generic
file that calls the other file named build-impl.xml.
Do you have any suggestion?

Paulo


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Classpath

Posted by Steve Loughran <st...@apache.org>.
Paulo Jorge Guedes wrote:
> Hi,
> 
> I created an enterprise project with NetBeans and I need to build it
> with ant, from the command line.
> I'm having a problem with the classpath. I need to import javax.ejb.*
> but it won't find the proper jar (j2ee.jar).
> The only way I can make ant to find it is setting the attribute
> "classpathref" in the "javac" element, inside my target. The problem is
> that I can't tweak the script file that defines the javac action because
> it is automatically generated by netbeans. I can only hack a generic
> file that calls the other file named build-impl.xml.
> Do you have any suggestion?
> 

run ant with -lib j2ee.jar to have it stuck on Ant's classpath.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org