I m not able to understand from where should I correct JRE_HOME variable and remove "; from the variable
mango-seeker@ubuntu:/usr/local/tomcat6/webapps/jspbook$ /usr/local/tomcat6/bin/catalina.sh run
Using CATALINA_BASE: /usr/local/tomcat6
Using CATALINA_HOME: /usr/local/tomcat6
Using CATALINA_TMPDIR: /usr/local/tomcat6/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun";
Using CLASSPATH: /usr/local/tomcat6/bin/bootstrap.jar
exec: 506: /usr/lib/jvm/java-6-sun";/bin/java: not found
The problem exist only with run paramter.
Due to this , I feel I m not able to excute the below ant script
This is really not so much a Tomcat question as an Ant question.
One thing I recommend is that you replace your relative paths with property-relative paths. For example, instead of
make it be like so:
As far as setting JRE_HOME or JAVA_HOME, the best place to do that is usually to create a $CATALINA_BASE/bin/setenv.bat file and put a "SET" statement in it. If Tomcat detects a setenv.bat file (Windows) or a setenv.sh file (Unix/Linux), it will execute whatever is in that file with the idea that you're setting environment variables there.
An IDE is no substitute for an Intelligent Developer.