aspose file tools*
The moose likes JSP and the fly likes JSP Precompilation using ANT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Precompilation using ANT" Watch "JSP Precompilation using ANT" New topic
Author

JSP Precompilation using ANT

SachinJ Joshi
Greenhorn

Joined: Jun 05, 2008
Posts: 19
I am trying to do pre-compilation of JSPs using ANT. I am using JRUN server on my local. following is the entry in my build.xml for jspc command.

<jspc srcdir="${compile1}/consumer"
destdir="${output}">
<include name="**/*.jsp"/>[/B]

where in consumer i m having my JSPs. and output is my destination. I got following error:

D:\Sachin\ANT_Script\build.xml:128: java.io.IOException: CreateProcess: C:\j2sdk1.4.2_04\jre\bin\java.exe -classpath D:\Sachin\ANT_Script\apache-ant-1
.7.0\lib\ant-launcher.jar;D:\opt\JRun4\lib;C:\j2sdk1.4.2_04\jre\bin;D:\opt\JRun4\bin;D:\Sachin\ANT_Script\apache-ant-1.7.0\lib\ant-antlr.jar;D:\Sachin
\ANT_Script\apache-ant-1.7.0\lib\ant-apache-bcel.jar;D:\Sachin\ANT_Script\apache-ant-1.7.0\lib\ant-apache-bsf.jar;D:\Sachin\ANT_Script\apache-ant-1.7.
0\lib\ant-apache-log4j.jar;D:\Sachin\ANT_Script\apache-ant-1.7.0\lib\ant-apache-oro.jar;D:\Sachin\ANT_Script\apache-ant-1.7.0\lib\ant-apache-regexp.ja
r;D:\Sachin\ANT_Script\apache-ant-1.7.0\lib\ant-apache-resolver.jar;D:\Sachin\ANT_Script\apache-ant-1.7.0\lib\ant-commons-logging.jar;D:\Sachin\ANT_Sc
ript\apache-ant-1.7.0\lib\ant-commons-net.jar;D:\Sachin\ANT_Script\apache-ant-1.7.0\lib\ant-contrib-1.0b3.jar;D:\Sachin\ANT_Script\apache-ant-1.7.0\li
b\ant-jai.jar;D:\Sachin\ANT_Script\apache-ant-1.7.0\lib\ant-javamail.jar;D:\Sachin\ANT_Script\apache-ant-1.7.0\lib\ant-jdepend.jar;D:\Sachin\ANT_Scrip
t\apache-ant-1.7.0\lib\ant-jmf.?

Please help me on this. It is urgent.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by SachinJ Joshi:
...
Please help me on this. It is urgent.

SachinJ Joshi
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
EaseUp to find out why adding words like "urgent" or "asap" to your posts or subject lines can often slow down or halt responses to your questions altogether. Often the only responses you'll get when you do this are posts talking about the use of the word "urgent"; something you obviously don't want.


Again, welcome to JavaRanch and good luck with your question.
-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Precompilation using ANT