Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My Tomcat is not running it just open and close when I click on tomcat7.exe [closed]

Tags:

java

tomcat

I am installing Tomcat 7 in my PC it works in Eclipse but when I try to open in bin/ tomcat7.exe it just open and closes, (I am stopping the server in Eclipse). Also, in Eclipse I'am trying to open admin console like URL:(localhost:1234/admin) it shows 404 error. Can anyone who knows this problem explain a solution?

like image 951
srikanth Avatar asked Apr 01 '14 10:04

srikanth


People also ask

Why isn't my Tomcat server is not starting?

Most common issue with Tomcat note starting is that Java is not configured properly, user trying to start Tomcat does not have permissions to do so, or another program is using port 8080 on that server.

How do I force Tomcat to start?

Open Task Manager, and select More details if not already expanded. Select the Services tab. Locate IDM Apps Tomcat Service and right-click over it. Select Start, Stop, or Restart.


1 Answers

If you are using Windows, you can follow the following to run tomcat7.exe :

  1. Open your Command prompt (cmd)
  2. Set your JAVA_HOME or JRE_HOME. Eg. set JRE_HOME=C:\Program Files\Java\jre7
  3. Go to the directory of your tomcat. Eg. cd C:\Program Files\apache-tomcat-7.0.35\bin
  4. Run startup.bat file. Eg. startup.

This should start your tomcat server without using Eclipse.

like image 142
Haritha Avatar answered Sep 20 '22 11:09

Haritha