aspose file tools*
The moose likes Tomcat and the fly likes Cannot install tomcat using zip file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Cannot install tomcat using zip file" Watch "Cannot install tomcat using zip file" New topic
Author

Cannot install tomcat using zip file

Gaurang Rathod
Greenhorn

Joined: Oct 30, 2012
Posts: 22

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

Joined: Jun 25, 2001
Posts: 16137
    
  21

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.
Gaurang Rathod
Greenhorn

Joined: Oct 30, 2012
Posts: 22

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot install tomcat using zip file