• 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

How to start Tomcat?

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to start apache tomcat server with startup.sh file.
 
Ranch Hand
Posts: 144
Oracle Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
kushagra mittal
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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....
 
Marshal
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Window? You should be doing this from a unix command line.

You are running Mac OS X or Linux, right?
 
kushagra mittal
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Marshal
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Marshal
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Marshal
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java_home != JAVA_HOME
 
You may have just won ten million dollars! Or, maybe a tiny ad.
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic