The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

RE: I tried...

Posted by Kishori Sharan on February 08, 2001 at 11:52 PM

Hi
I have been using Javawebserver2.0 for last 4 months and I have used many servlets. In fact, when you start javawebserver then it automatically sets all jar files in its lib folder in its classpath. It also sets its classes and servlets folder in its classpath. You can verify it by using a JSP page which has
<%
out.println ( Sysystem.getPropety ( "java.class.path" ) ) ;
%>

But you need to set the classpath as you did when you want to compile a servlet. I think your program is not running because you haven't added . ( a dot ) to include current directory in your classpath and your java class is not in any package. Please include the error you are getting if it still doesn't work.
Thanx
KIshori



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us