This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Transfer Learning for Natural Language Processing (MEAP) and have Paul Azunre on-line!
See this thread for details.
Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Tomcat 7.0.26 installation

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Tomcat.jpg
[Thumbnail for Tomcat.jpg]
 
Rancher
Posts: 2265
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tina Mills
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
Tina Mills
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2265
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2265
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at my previous post.
 
Tina Mills
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2265
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What os are you using? Windows or something else?
 
Tina Mills
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
windows 7
 
Swastik Dey
Rancher
Posts: 2265
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you followed step 3?
 
Tina Mills
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like it worked. I see the Tomcat server's welcome page http://localhost:9999/ Thank you!
 
Swastik Dey
Rancher
Posts: 2265
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are welcome.
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This youtube video shows how to configure the Tomcat
http://www.youtube.com/watch?v=ag_i8e7Qliw
 
Friends help you move. Good friends help you move bodies. This tiny ad will help:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic