This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Compiling  a Servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Compiling  a Servlet?" Watch "Compiling  a Servlet?" New topic

Compiling a Servlet?

Ghazala Islam
Ranch Hand

Joined: Nov 22, 2000
Posts: 73
Is it right to compile a servlet in jdk/bin directory with 'javac' command and then copy it to
webapps/web-inf/classes directory and execute it from browser?
Sagar Surana

Joined: Dec 23, 2000
Posts: 21

instead of doing that way u can simply set path= x:\jdk..\bin
if ur using windows platform in ur autoexec.bat file or
u can run the same on command line to set the path
and then u can compile ur program in which ever directory u want

Sagar Surana
( +ve attitude)

Sagar Surana<BR>optimist
Don't get me started about those stupid light bulbs.
subject: Compiling a Servlet?
Similar Threads
Servlet Compilation
Where in Javawebserver2.0 should I place my Html , Jsp and Java programs
why ???
package apache.commons not exists
Servlet not running