Pages Navigation Menu

Technology Site with updated news about Mobiles, Gadgets, Laptops, Windows, Linux, Tutorial, Internet, Web, Android, IPhone

Set Classpath in Apache Tomcat Permanently

This tutorial will guide you on how to set the classpath in Apache Tomcat permanently, so that we don’t need to set the classpath each time. Apache Tomcat is one the most widely used webservers, but unlike WAMP, XAMPP Apache distributions, Apache Tomcat needs the user to set the classpath after the installation. Once you install Apache Tomcat, to run the server, we need to execute startup.bat present in the bin folder,there is already a file present in bin folder to set the classpath, but it hardly works on most of the machines. Apache Tomcat requires either JAVA_HOME or JAVA_JRE classpath to be set in order to work. Without setting these classpath Tomcat will throw the following error “Either JAVA_HOME or JAVA_JRE is required for Apache to start“.

Set JAVA_HOME Classpath for Apache Tomcat

  1. Open System Properties (Window Key + Break or Right Click on My Computer -> Properties). Environment variable Windows 7
  2. Select Advanced and then Environmental Variables. Environment variable
  3. In System Variables , select Add and enter JAVA_HOME as Variable name and the path of your JDK Folder (not the bin, the outer folder, eg. C:\Program Files\Java\jdk1.6.0_18 ) in Variable value and select OK.
  4. In System Variables , double click on the value called “PATH” (If PATH doesn’t exist,create one) and in the end of variable value, add “;JAVA_HOME” and select Ok Apache Set classpath
  5. (The semicolon is to separate the other entries from JAVA_HOME.
  6. Click on Ok and Restart your computer. Apache Classpath

By following the above methods, you can run Apache Tomcat without setting the classpath each time. There can be many alternate methods to do this, but this one is comparatively easier than others.


  1. I vidited multiple weeb pages except the audio fedature for audio songs present att this website is actually superb.

  2. wonderful publish, very informative. I’m wondering why the other experts of this sector do not notice this. You must proceed your writing. I’m confident, you have a great readers’ base already!


  1. Real Madrid Jersey 2011 2012 - where to buy Premier and Stitched Detroit Lions jerseys ??... [...]we adivce go to this website to see more about Detroit …

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>