If you set the classpath I have had to reboot - your better off if you do to
make sure your changes take effect - this is from my experience but maybe my
machine is a letter strange. The classpath is not for your class files and
yes you must set the classpath to point to tool.jar. If you know anything
about java and the api you import your class from the api or from packages
you create or both or you instantiate them with the new statement. Again the
class path is for tomcat not your class files - who cares what it does as
long as tomcat runs. If you look at the examples directory under webapps you
can easily find out where to put your bean classes or packages. The examples
directory is webapps\examples\WEB-INF\classes - examples uses this directory
for class files it's JSP's use. Set your environment variables - get tomcat
to run and mimic the examples directory to see where what goes where. That
is why the examples are there. Also the docs would easily answer you
questions.
-- Pete --


----- Original Message -----
From: "Dustin M. Hawley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 04, 2001 12:32 PM
Subject: RE: CLASSPATH trouble


>
> I understand how to set the environment variables (which you don't need
> to reboot to instantiate, btw).  I was referring to checking them, which
> can be done at the command line with "echo %YOURVARIABLE%".  This will
> return it's current value.  The trouble is that unless I set the CLASSPATH
> statically Tomcat doesn't seem to set it up dynamically as it should with
> the tomcat.bat file (which I verified using the above command).  My
> JAVA_HOME variable is set to where it should be.  Are you saying that
> CLASSPATH should staticly point to the JDK's tools.jar?  I'm a little
> confused.  I'm thinking that perhaps I was unclear before.  Could someone
> give me a short synopsis of the purpose of the CLASSPATH variable, what
> it should be set to and where I put my class files that are called by
> my JSP documents?
>
> Thanks,
> Dustin
>
>
> -----Original Message-----
> From: Pete Ehli [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 04, 2001 12:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: CLASSPATH trouble
>
>
> First off  the command via dos is -- set -- to see the classpath. You set
> environment variables in the system icon via the control panel folder.
Click
> on the environment tab and enter under user variables for Administrator in
> the variable textbox at the bottom     CLASSPATH        then in the value
> textbox type     C:\jdk1.3\lib\tools.jar      this is a permanent set
> command it is accepted as such by NT. You also need JAVA_HOME and if you
> want ANT_HOME. Look in the docs for these paths or email me directly. Oh
and
> by the way yes tomcat needs to know JAVAHOME and also use the startup.bat
> and shutdown.bat to start and stop tomcat. I would edit this files back to
> there original state and also for environment rules to take place you must
> reboot.
> -- Pete -- [EMAIL PROTECTED]
>
> ----- Original Message -----
> From: "Dustin M. Hawley" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 04, 2001 10:55 AM
> Subject: CLASSPATH trouble
>
>
> >
> > Greetings -
> >
> > This is my first mail to the list so I hope I don't offend.  I am
running
> > Tomcat 3.2 under Windows NT 4.0
> > and I am having trouble running JSP pages that use Java classes.  I get
a
> > 500 error (Internal Servlet
> > error) when trying to load them.  First of all, tomcat.bat is not
building
> > CLASSPATH dynamically as it
> > should.  After Tomcat is running if I check CLASSPATH by typing "echo
> > %CLASSPATH%" at the
> > command line I get no results.  I have tried creating
TOMCAT_HOME\classes
> > and putting the classes
> > there with no luck.  Also, in the test tree there are a few JSP
documents
> > that use classes that do
> > not function either.  I have also tried setting CLASSPATH staticly
myself
> > which does not work either.
> > This leaves me to wonder if CLASSPATH is the right variable or if it is
> even
> > being checked by Tomcat
> > at any time.  Basically, I just need to know where to put my classes and
> > what I need to do to get
> > Tomcat to see them.  Everything else under Tomcat seems to be okay.
> >
> > Thanks in advance,
> > Dustin
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to