Setting classpath in Win9.x version of Tomcat


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Setting classpath in Win9.x version of Tomcat

Hybrid View

  1. #1
    Brian Jay Guest

    Setting classpath in Win9.x version of Tomcat


    I'm enrolled in a Java class where we are creating JavaServer Pages. In order
    to test and run examples I installed the Tomcat server. The problem is I
    cannot get it to run. The user guide says I must set the classpath and the
    tomcat_home environment variable. I have the JDK installed at c:\jdk1.3
    and tomcat at c:\jdk1.3\tomcat. Any help would be appreciated.
    Thanks

  2. #2
    David Thornton Guest

    Re: Setting classpath in Win9.x version of Tomcat


    gotcha brian, i'm doing the same thing.

    go to the ms-dos prompt and type the following two commands:

    set tomcat_home="c:\jdk1.3\tomcat"
    set java_home="c:\jdk1.3"

    that's it! then you should be able to go to tomcat\bin and type startup
    to get started.
    if this doesn't answer your question well enough, just let me know.

    David

  3. #3
    Brian Jay Guest

    Re: Setting classpath in Win9.x version of Tomcat


    Thanks Brain
    I got the server started but now I'm having problems running the same WAR
    files or testing my own pages. I checked out JGuru and readme files but
    I can't get them to run. Any help would be appreciated.
    Thanks

    "Brian Jay" <bjay@home.com> wrote:
    >
    >I'm enrolled in a Java class where we are creating JavaServer Pages. In

    order
    >to test and run examples I installed the Tomcat server. The problem is

    I
    >cannot get it to run. The user guide says I must set the classpath and

    the
    >tomcat_home environment variable. I have the JDK installed at c:\jdk1.3
    >and tomcat at c:\jdk1.3\tomcat. Any help would be appreciated.
    >Thanks



  4. #4
    David Thornton Guest

    Re: Setting classpath in Win9.x version of Tomcat


    brian,

    one easy way to run you examples is to put it in
    c:\jdk1.3\tomcat\webapps\examples\jsp\briansdirectory\briansjsppage.jsp
    then just make a link to that spot with some html page.

    There's another way to set your own path, so that you could put your jsp
    page in another directory, but i haven't gotten to that yet.

    keep posting if you have any other troubles, i'm right there with you man.

    David

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center