I've been trying unsuccessfully now for 4+ hours to get to the point where i can run ant to compile a servlet. This is insanely confusing. Atleast for me. Yes this is the first attempt. I can't imagine it being anymore frustrating. Why wouldn't the creators of these packages include the setting of environment variables in their installations? It makes absolutely no sense to me. If somene can offer any kind of help i would greatly appreciate it!
when i run ant to i am getting the following error:
From everything i've been reading this is an env variable problem. But i just can't imagine what?? Please help! and thanks so much in advance!
Author and all-around good cowpoke
Joined: Mar 22, 2000
You should be able to get Tomcat to run by setting the single JAVA_HOME environment variable and possibly CATALINA_HOME - otherwise Tomcat ignores all CLASSPATH settings. Looking in the ANT docs - Ant\docs\manual\index.html - the Installing Ant section, we find a discussion of what Ant likes to see for environment variables for windows and unix systems. Can you get ant to respond with to a -version command? Can you get Tomcat to run so you can see the installed documentation? Which Java SDK are you working with? Bill
has me mystified - there should be a class name in there somewhere. Exactly how are you executing ANT to get that error? Why are you trying to run Apache and Tomcat? Tomcat does just fine as a plain HTML server. Bill
Joined: Jun 17, 2004
Sorry i am not running both. Just tomcat. It appears as though the problem may still be with the ENV variables. The only thing i can think is the spaces in the directory structure are causing problems:
Tomcat is installed in: C:\Program Files\Apache Software Foundation\Tomcat 5.0
What env variable would this be. I am running XP Pro.. shouldn't be a problem but it appears to be. I have also tried the ~1 naming and still getting the error. I a going t re-install to root.. Frustrating.
Oh yeah running ant, ant -version and ant anything returns that same error.