Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9226567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:51:46+00:00 2026-06-18T04:51:46+00:00

I am currently self-studying servlets. It has been cakewalk so far. I compile my

  • 0

I am currently self-studying servlets. It has been cakewalk so far.

I compile my Java programs from command line and I have set the classpath environment variable to D:\Program Files\apache-tomcat-7.0.35-windows-x86\apache-tomcat-7.0.35\lib\servlet-api.jar
so that I do not have to keep entering it over and over again.

However,
my development environment and deployment environment are in different locations (duh). Every time I have to start Tomcat I have to navigate to the bin folder and then call STARTUP.BAT

This is quite annoying.
My question is:
Is there a way so that I can start Tomcat right from the directory where my Java sources are stored ? and avoid the hassle of navigating all the time ?
Something akin to:
E:\Servlet Projects\Project-1\src > startup.BAT and Tomcat would start

Misc:

  • Operating System: Windows 7 Home Premium 32 bit
    • 1 1 Answer
    • 0 Views
    • 0 Followers
    • 0
    Share
    • Facebook
    • Report

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Forgot Password?

    Need An Account, Sign Up Here

    1 Answer

    • Voted
    • Oldest
    • Recent
    • Random
    1. Editorial Team
      Editorial Team
      2026-06-18T04:51:47+00:00Added an answer on June 18, 2026 at 4:51 am

      Just add the path to Tomcat’s bin folder to path environment variable. If a batch/command file is not found in the current folder, then the operating system will look for the file in all paths definied in the path environment variable, in the same order as they’re been definied.

      Note that this all has completely nothing to do with Java, Servlets, nor Tomcat.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
        • Report

    Sidebar

    Related Questions

    I'm currently self-studying C for mastering an university project. In that project we have
    I'm currently having a self signed certificate for my HTTPS webserver. In my java
    I am currently building an application in Java on Eclipse as a self help
    I'm currently self-studying C# in my free time and thought of a little project
    I currently have the following piece of code NSPredicate *pred = [NSPredicate predicateWithFormat:@SELF contains
    I'm currently studying debuggers. I've read that the debuggers have software breakpoints ( apparently
    Sorry I'm only self taught but having trouble with something. I currently have a
    so I'm pretty new to SQL and almost wholly self-taught so far. I'm currently
    Hello I'm currently self teaching C# and have run into a bit of a
    I currently have a self-referencing join table without a primary key. If you're familiar

    Explore

    • Home
    • Add group
    • Groups page
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help
    • SEARCH

    Footer

    © 2021 The Archive Base. All Rights Reserved
    With Love by The Archive Base

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.