dcsimg
Cannot launch Ant??????
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alana_Nakamura
Posted On:   Monday, April 19, 2004 08:49 PM

I have tried installing binary Ant two times. For a day and a half I have gone over classpaths, environmental variables, etc. I bought a book this afternoon. I have had tomcat up and running for quite some time for use of my servlets and wanted to add the functionality of Ant. Unfortuately no matter what I do I cannot even get ant -version to come up; the most preliminary of all steps. I have followed the installation off the manual along with out of the book. My java directory points to JAVA_HOME and my ant directory points to ANT_HOME. I have ANT_HOME in in the environmental variables.Does anyone have any idea what could be    More>>


			

I have tried installing binary Ant two times. For a day
and a half I have gone over classpaths, environmental
variables, etc. I bought a book this afternoon.


I have had tomcat up and running for quite some time for
use of my servlets and wanted to add the
functionality of Ant. Unfortuately no matter what
I do I cannot even get ant -version to come up;
the most preliminary of all steps. I have
followed the installation off the manual along
with out of the book. My java directory points
to JAVA_HOME and my ant directory points to
ANT_HOME. I have ANT_HOME in in the environmental
variables.Does anyone have any idea what could be
wrong? Thank you for any help or advice


   <<Less

Re: Cannot launch Ant??????

Posted By:   Perry_Lucas  
Posted On:   Wednesday, April 28, 2004 12:19 PM

I had this same problem (as mentioned in one of the posts). I found that I had an old ant.jar file from a previous installation in the j2sdk1.5.0jrelibext folder which was confusing the ant-launcher. After removing this .jar file (which shouldn't have been placed in that folder to begin with) everything worked fine.




Note: since ant is a standalone program, it's references should be placed in the CLASSPATH and PATH environment variables and not put into the ext folder...



If this didn't solve your problem, let me know.



~Perry

Re: Cannot launch Ant??????

Posted By:   Anonymous  
Posted On:   Tuesday, April 20, 2004 01:18 AM

We need more infos:

  • Which version of Ant do you have?

  • Does ANT_HOMEin contain a ant.bat?

  • Does ANT_HOMElib contains some jar-files?

  • What are the values of JAVA_HOME, ANT_HOME?

  • What is the output from ant -version?

About | Sitemap | Contact