Stevev,
I run JBuilder3 as well. What you need to do is create an HTML file which
accesses your servlet on port 8080. This is the default port for the
servletrunner from JBuilder. When you set the path to the servlet in the
HTML file you must also specify the package name, e.g.
 http://localhost:8080/servlet/package.servletName )
You must have the package included in the path or your servletrunner will
not find your servlet.

If you not familair with java packages, it's specified in your source code.
It looks like (package packagename;) and is generally at the TOP of your
source code. If you don't find it there, then you can add it by just using
the keyword "package" and then the directory in which your servlet resides.
NOT the entire classpath, just the directory. Examples follow:

Actual servlet path on your local machine:
C:\JBuilder\myprojects\helloworld\helloworld.java
Path in HTML file to execcute servlet
http://localhost:8080/servlet/helloworld.helloworld
Package name would be ( package helloworld; )

Let us know if this works.

John D. McDonald
CipherStream Systems
email: [EMAIL PROTECTED]
web: www.cipherstream.com
-------------------------------------------------------
Secure E-Business Is Our Business
-------------------------------------------------------
----- Original Message -----
From: Steven Hawkes <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 02, 1999 9:21 AM
Subject: Beginners Question


> Hi
>
> I wonder if someone could help a total
> beginner with I am sure some very silly
> questions.
>
> I am trying to run the hello world example
> provided on the www.devdaily.com/java site
> and am not having a lot of success.
>
> I compiled the example under JBuilder 3.
> I then started the ServletRunner as provided
> in the JSDK2.0 successfully.
>
> Then I have a problem.    The instructions say
> Copy the Servlet to a directory but what is the
> output of the compilation, the html, the class or
> the java file, what must I copy all three files?.
>
> My next question is when I load the examples
> provided with in the JSDK2.0 and try to compile
> them they compile successfully but what is the
> output of the compilation.   I cannot locate any
> HTML file from the JBuilder.
>
> The message from the servletrunner is "Unable to
> find <Servlet name>
>
> My final question is with regard to the Browser
> request line.    The example states I should enter
> http://localhost:<Port>/servlet/<Servlet Name>
>
> How does the ServletRunner know about the
> Servlet entry above as I cannot see this announced
> when it starts and how does this relate to the
> examples directory where the test files are located.
>
> Sorry if these questions are a little simple.
>
> Cheers
>
> Steve
>
>
___________________________________________________________________________
> 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
>

___________________________________________________________________________
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

Reply via email to