aspose file tools*
The moose likes Tomcat and the fly likes How to start Tomcat? 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 "How to start Tomcat?" Watch "How to start Tomcat?" New topic
Author

How to start Tomcat?

kushagra mittal
Greenhorn

Joined: Jun 02, 2011
Posts: 12
How to start apache tomcat server with startup.sh file.
Mike Zal
Ranch Hand

Joined: May 04, 2011
Posts: 144

1) Go to the directory where the script is located
2) Make sure its permissions include execute
3) Execute the script like any other by typing ./startup.sh


OCJP6, OCWCD5
kushagra mittal
Greenhorn

Joined: Jun 02, 2011
Posts: 12
Mike Zal wrote:1) Go to the directory where the script is located
2) Make sure its permissions include execute
3) Execute the script like any other by typing ./startup.sh



But it open select a program from a list to run the file window....
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61421
    
  67

Window? You should be doing this from a unix command line.

You are running Mac OS X or Linux, right?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
kushagra mittal
Greenhorn

Joined: Jun 02, 2011
Posts: 12
Bear Bibeault wrote:Window? You should be doing this from a unix command line.

You are running Mac OS X or Linux, right?


No i am running Windows Vista....
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61421
    
  67

Then you don't use a shell script to start Tomcat, you use the Windows proprietary .bat file. Shell scripts are for real operating systems.

(Unless you are using cygwin?)
kushagra mittal
Greenhorn

Joined: Jun 02, 2011
Posts: 12
Bear Bibeault wrote:Then you don't use a shell script to start Tomcat, you use the Windows proprietary .bat file. Shell scripts are for real operating systems.

(Unless you are using cygwin?)

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program


Path for java_home is set in environment variables......
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61421
    
  67

As I do not use Windows, I'm not exactly sure, but I believe that you define the JAVA_HOME environment variable via the control panel somewhere. Google around for instructions.
kushagra mittal
Greenhorn

Joined: Jun 02, 2011
Posts: 12
Bear Bibeault wrote:As I do not use Windows, I'm not exactly sure, but I believe that you define the JAVA_HOME environment variable via the control panel somewhere. Google around for instructions.


Path for java_home is set in environment variables......
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61421
    
  67

java_home != JAVA_HOME
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to start Tomcat?