File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat 7.0.26 installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 7.0.26 installation" Watch "Tomcat 7.0.26 installation" New topic
Author

Tomcat 7.0.26 installation

Tina Mills
Greenhorn

Joined: Feb 23, 2012
Posts: 15
I downloaded the zip (pgp, md5) file for version 7.0.26 from http://tomcat.apache.org/download-70.cgi. It doesn't have a setup file. What do you run to setup Tomcat 7.0.26? I have Windows 7. I attached a screenshot.


[Thumbnail for Tomcat.jpg]

Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1479
    
    6

Tina,

Tomcat has two different distributions. One is a service installer, and another is a zip file. If you download and install the service installer, it runs as a windows service. But you probably downloaded the second one and this one does not have a setup file. So, what you need to is simply unzip the file. Once unzipped if you explore the folder, you will get a file called startup.bat under bin directory. You need to execute this file to start tomcat, of course after setting the environment variables like java_home,catalina_home etc.


Swastik
Tina Mills
Greenhorn

Joined: Feb 23, 2012
Posts: 15
Thank you.
Tina Mills
Greenhorn

Joined: Feb 23, 2012
Posts: 15
Thank you. I followed the instructions here http://www3.ntu.edu.sg/home/ehchua/programming/howto/tomcat_howto.html but I'm getting
'JAVA_HOME' is not recognized as an internal or external command, operable program or batch file.
when I re-start the cmd shell.
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1479
    
    6

Have you set the java_home env variable? What look to me is you are setting it in command prompt, right? Problem with this approach is every time you re open a new command prompt the value is lost. Better if you set it from MyComputer->Properties.
Tina Mills
Greenhorn

Joined: Feb 23, 2012
Posts: 15
Yes, I followed the instruction under the STEP 2: Create an Environment Variable JAVA_HOME section here http://www3.ntu.edu.sg/home/ehchua/programming/howto/tomcat_howto.html

Variable name: JAVA_HOME
Variable value: C:\Program Files\Java\jdk1.7.0_03
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1479
    
    6

Look at my previous post.
Tina Mills
Greenhorn

Joined: Feb 23, 2012
Posts: 15
That's how I did it. I'm using the command prompt to check that it's done.

STEP 2: Create an Environment Variable JAVA_HOME
You need to create an environment variable called "JAVA_HOME" and set it to your JDK installed directory.

1.First, take note of your JDK installed directory (the default is "c:\program files\java\jdk1.7.0" or "c:\program files\java\jdk1.6.0_xx").
2.Start a CMD shell, and issue the command "SET JAVA_HOME" to check if variable JAVA_HOME is set:
prompt> set JAVA_HOME
Environment variable JAVA_HOME not definedIf JAVA_HOME is set (by other applications), check if it is set to your JDK installed directory.
3.To set/change an environment variable in Windows 2000/XP/Vista/7: Click "Start" button ⇒ "Control Panel" ⇒ "System" ⇒ (Vista/7) "Advanced system settings" ⇒ Switch to "Advanced" tab ⇒ "Environment Variables" ⇒ "System Variables" (or "User Variables" for the current user only) ⇒ "New" (or "Edit" for modification) ⇒ In "Variable Name" field, enter "JAVA_HOME" ⇒ In "Variable Value" field, enter your JDK installed directory (e.g., "c:\program file\java\jdk1.7.0") - I suggest that you copy and paste the directory name to avoid typo error!
4.To verify, RE-START a CMD shell and issue:
prompt> set JAVA_HOME
JAVA_HOME=c:\program file\java\jdk1.7.0 <== CHECK! YOUR JDK installed directory


Do I need to do this? To make permanent changes, store the above command in ".bash_profile" in your home directory (denoted as '~'), and run "source $HOME/.bash_profile" to refresh.
Is it referring to C:\Program Files\Java\jdk1.7.0_03
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1479
    
    6

What os are you using? Windows or something else?
Tina Mills
Greenhorn

Joined: Feb 23, 2012
Posts: 15
windows 7
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1479
    
    6

Have you followed step 3?
Tina Mills
Greenhorn

Joined: Feb 23, 2012
Posts: 15
It looks like it worked. I see the Tomcat server's welcome page http://localhost:9999/ Thank you!
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1479
    
    6

You are welcome.
Ilakya Mukunth
Ranch Hand

Joined: Mar 13, 2012
Posts: 57
This youtube video shows how to configure the Tomcat
http://www.youtube.com/watch?v=ag_i8e7Qliw
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 7.0.26 installation