Starting Tomcat 7 (java 7)

Asked

Viewed 118 times

1

I’m installing Jdk7 and Tomcat 7.
jdk7 installation was normal without any problems and system variables have also been created and targeted.
After this step was done I went to install Tomcat 7, but at the beginning was giving an installation error because there was already a service Tomcat on my machine. What I did was go to where the other Tomcat was installed (Obs: not the same version), and removed the.bat server; I only removed it from the folder to be more exact, then tried to install Tomcat 7 again and the installation was completed normally. I made the necessary settings of targeting for jre.
However when I tried to start Tomcat from the service screen the error below occurred inserir a descrição da imagem aqui

I went to see the error logs and that’s what came up

Running 'Tomcat7' Service...
Starting service...
CreateJavaVM Failed
O sistema não pôde encontrar a opção de ambiente digitada.
Failed to start Java ServiceStart returned 4
Run service finished.
Commons Daemon procrun finished
  • you installed jdk and jre from java ?

  • Go to the Tomcat instation (unzip), enter the folder bin and run the bat shutdown.bat and try again.

  • Did you "install" Tomcat? You just need to download the zip, extract and run the start script.

  • Maybe you are trying to initialize Tomcat that was already instanlado and as you removed the file it does not work. Run Tomcat 7 through windows CMD, for example: C:\Apache Software Foundation\Tomcat 7\bin>catalina start

1 answer

0

Sorry, guys, I went to see later that the error was in the Java Options configuration of Tomcat 7 It took me a while to figure it out, and with the help of a colleague, I figured it out. Oh also, I saw that I had a Tomcat service installed too, so I had to remove it too. In other words, in the end I removed the service from an old Tomcat, and correctly configured Tomcat’s Java Options. Even so I thank all of the community who were willing to answer were valid tips and I apologize for the delay

Browser other questions tagged

You are not signed in. Login or sign up in order to post.