what server you have? tomcat or weblogic, or Jserv?
then don't create your own directory,
you place your servlet programs in .../web-inf/classes/HelloWorld.java
then you compile
then you run http://localhost:8080/examples/servlet/HelloWorld
file name is case sensitive. be aware in that.
if you want to create your own directory, you have to create package.
but i have no idea about that
> I can run jsp but not servlets. All my java files needs to be either in
> java-difrad dorectory or further down the tree. My class files are in
java-
> difrad/WEB-INF/classes. When I am typing in www.difrad.com/java-
> difrad/servlet/Helloworld I get error 404 File not found. My provider's
> server runs UNIX. I have got all the right permissions on the class
file.
> Any ideas how to run that servlet ?