JRun will precompile JSP's for you, but servlets and JavaBeans need to be
compiled before they are placed in the appropriate directories. Here's the
process for adding a servlet to your server:
1. Be sure that the servlet.jar (or jsdk.jar) file is in your classpath.
2. Using the JDK (or a servlet-enabled IDE), compile your source code.
3. Move the class file to the c:\jrun\servlets directory.
4. In most cases, you won't need to restart JRun to use the servlet, but if
it doesn't find it, go ahead and restart JRun.
JSP's are a bit different. They are a hybrid of HTML and Java code that gets
compiled into a servlet by JRun the first time the page is requested (and
every time after that it has changed). If your JSP uses a JavaBean
component, compile it separately and place it in the
c:\jrun\jsm-default\classes directory.
I hope this helps. If you'd like a more comprehensive guide to servlets,
check out my new book 'Professional Java Server Programming' from Wrox Press
(www.wrox.com)
Andrew Patzer
>From: Chris Mcgarel <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: JRun compiler?
>Date: Wed, 25 Aug 1999 08:07:12 -0700
>MIME-Version: 1.0
>From [EMAIL PROTECTED] Wed Aug 25 08:31:30 1999
>Received: from [204.160.241.28] by hotmail.com (2.1) with ESMTP id
>MHotMailB98D574D00BBD82197D0CCA0F11CF72C1; Wed Aug 25 08:31:30 1999
>Received: from mail (mail.java.sun.com [204.160.241.28])by
>mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA20628;Wed, 25 Aug 1999
>08:22:18 -0700 (PDT)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d)
>with spool id 442350 for [EMAIL PROTECTED]; Wed, 25
>Aug 1999 08:19:04 -0700
>Received: from exchkirk04.walldata.com (exchkirk04.walldata.com
>[198.252.75.121]) by mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP
> id IAA18444 for <[EMAIL PROTECTED]>; Wed, 25 Aug 1999
> 08:09:02 -0700 (PDT)
>Received: by exchkirk04.walldata.com with Internet Mail Service
>(5.5.2448.0) id <QGMPYZAN>; Wed, 25 Aug 1999 08:08:44 -0700
>X-Mailer: Internet Mail Service (5.5.2448.0)
>Message-ID:
><[EMAIL PROTECTED]>
>Sender: "A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology." <[EMAIL PROTECTED]>
>
>A real newbie question:
>Using JRun under IIS.
>
>I've got a simple 'Hello World' type servlet which I want to compile. Both
>JDK and J++ throw errors at the lines:
>import javax.servlet.*;
>import javax.servlet.http.*;
>
>Does JRun have its own compiler? The JRun doc mentions in-process
>compilation. What does this mean? Surely you need to precompile your
>servlet
>before you can move it to your servlets directory, or can you just put your
>.java file in and JRun will compile it for you?
>
>Is anyone else struggling with this technology as much as me? I can write
>advanced ASP e-commerce applications till the cows come home but JSP and
>servlets seems impenetrable, not helped by poor JRun documentation.
>
>Phew! Glad to get that off my chest.
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html