Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web Server CLASSPATH

 
Supree
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
I've started practicing Java server side programming at my home.
It's very interesting.
I got a questiion in Java Web server 2.0
I placed my servlet uder H:\spohimed\JavaSrc directory and this directory in included in Windows CLASSPATH.
When I try to load the servlet in Web Server, it complains that class file is not found. Then I placed the servlet under web server /server/classes directory. This time it is able to find it.
Some books say that you have to add the custom directory in Java Web server's CLASSPATH. I've no idea about Web server's CLASSPATH.
If I want to keep my classes under my custom directory, is there any way to make the web server find it.
Any response is highly appreciated.
thanks,
supree

------------------
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you only intend to "practice / learn" Java server side programing, viz.Servlets, I would suggest trying "servletrunner" instead of Java web server.
Java web server configuration is a time consuming affair, unless you also intend to learn "configuration of Java web server". On the other hand servlet runner needs no configuration.
I have usually found that the maximum demand for "web server administrators" is for the UNIX based servers, most popular being Apache or NT based IIS.
When I started learning servlet, I thought it would be better to use Java Web server, but I found I was wrong. I wasted too much time in researching web servers, instead of focusing on Servlets.
 
Supree
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Anik for sharing your view.
I've already installed and configured Java Web Server, just to have a feel of a Web Server and understand the concept. It's running fine and really interesting.
Regards,
Supree
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic