Set JAVA_HOME Classpath for Apache Tomcat
Open System Properties (Window Key + Break or Right Click on My Computer -> Properties).
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 FilesJavajdk1.6.0_18 ) in Variable value and select OK.
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
(The semicolon is to separate the other entries from JAVA_HOME.
Click on Ok and Restart your computer. Untitled Set Classpath in Apache Tomcat Permanently
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.