By: J.D. Hildebrand
Abstract: A step-by-step procedure for integrating Tomcat 3.2.1 with JBuilder 4 Foundation, which allows servlets to be modified and debugged directly from the IDE. By Richard Lawson.
Server-side Java programming is increasingly becoming a mainstay of corporate IT departments
as companies seek to open legacy systems to the internet. In addition, IT shops leverage
server-side Java on the intranet by making corporate services available through
a web-browser. Servlets and JSP provide a robust, cross-platform method of interacting
with users both over the internet and corporate intranet.
Ok, you've heard that servlets are a good thing and you want to get started
evaluating this technology. Of course, you may not have a large budget available for
evaluation purposes. Well, I've got good news. You can create a great tool for servlet
programming by combining JBuilder 4 foundation and the Tomcat servlet/JSP implementation.
Both are available for free!
After you have convinced yourself that server-side Java is the way to go,
you can upgrade to JBuilder 4 Professional or Enterprise which offer powerful wizards and
plug-ins for servlet development. In addition, large enterprise applications will probably need a
commercial servlet engine or full-blown J2EE application server. But for small projects or
proof-of-concepts, the Tomcat engine with JBuilder 4 Foundation offers great value.
See the following excellent article
for setting up JBuilder 3.5 and Tomcat 3.1
OK, now that you have the Tomcat library set up, you'll want to use it so you can
run and debug servlets from within the JBuilder IDE. Once you have created a project,
simply add the Tomcat library to your project by clicking the Add button from the
Required Libraries tab of Project Properties. Select your library from the
Since our servlets are actually executed by the Tomcat servlet engine, we have to
set the main class for our project to be Tomcat's main.
The steps outlined in this document were tested on JBuilder 4 Foundation and Tomcat 3.2.1
By Richard Lawson, senior developer, Newark Electronics.
Server Response from: ETNASC03