Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot install tomcat using zip file

 
Gaurang Rathod
Greenhorn
Posts: 22
Chrome Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone.

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
PATH: %JAVA_HOME%\bin

But Tomcat does not start.
On starting startup.sh in bin folder, Windows asks to select appropriate program to run the app.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18156
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gaurang Rathod
Greenhorn
Posts: 22
Chrome Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim

I works when I use startup.bat rather that startup.sh.
And I set up classpath variable just so I can compile servlets.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic