File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Compiling web apps files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Compiling web apps files" Watch "Compiling web apps files" New topic
Author

Compiling web apps files

ramdas pradeep kumar
Ranch Hand

Joined: Aug 27, 2003
Posts: 36
apache tomcat
after the initial deployment of war, can we recompile the source files from the same directory where web application is deployed.?
how to access the lib files while compiling?
[ September 20, 2003: Message edited by: ramdas pradeep kumar ]
Eelco den Heijer
Ranch Hand

Joined: Jan 17, 2002
Posts: 61
I think the best thing to do is to get your development environment setup first; set up the directories, libraries etc. Configure your classpath. Then compile everything, create a war file (or an ear file), deploy it in Tomcat.
For a next development cycle, repeat the above steps; change code, compile, create war file, deploy to Tomcat.
For all these repetitive task, I can recommend using Ant.
The way you describe it is not very common, and not at all practical; you deploy the class files, war, ear file, html files etc. but not the Java source files. The only exception are the JSP files; some people actually edit the deployed JSP's. Just look in the deployed folder of Tomcat, find the JSP, edit it and lookup the page again.
Hope this helps


== <br />Rgrds,<br />Eelco<br /> <br />SCJP, SCJD, SCBCD, SCWD, SCEA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compiling web apps files