This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to start Tomcat?

 
kushagra mittal
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to start apache tomcat server with startup.sh file.
 
Mike Zal
Ranch Hand
Posts: 144
Fedora Java Oracle
  • 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....
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java_home != JAVA_HOME
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic