I wanted to install tomcat using zip file so that Netbeans can easily detect Tomcat server instance.
Here is what I did:
1. Downloaded 32-bit Windows zip(pgp,md5) (8.38 MB) (I have Windows 7, 32 bit)
2. Extracted it in C: ( I was not allowed to extract it in C:/Program files)
3. My environment variables are : JAVA_HOME: C:\Program Files\Java\jdk1.6.0
CLASS_PATH: %CLASSPATH%;.;C:\Program Files\apache-tomcat-7.0.30\lib\servlet-api.jar
But Tomcat does not start.
On starting startup.sh in bin folder, Windows asks to select appropriate program to run the app.
You do not need to set up a classpath for Tomcat. The tomcat scripts do that automatically. The only thing that you need to do is setup JAVA_HOME and add %JAVA_HOME%\bin to your PATH.
You are better off opening a command-line window and starting Tomcat that way. If you do want to start it via the GUI, the TOMCAT_HOME/startup.bat script is the one to click on. The ".sh" are the ones used by Linux/Unix. To get the click-launch to work at all, however, you need to have the desktop environment set up to with JAVA_HOME and the PATH for java.
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Oct 30, 2012
I works when I use startup.bat rather that startup.sh.
And I set up classpath variable just so I can compile servlets.