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
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 ?
– Marco Souza
Go to the Tomcat instation (unzip), enter the folder
bin
and run the batshutdown.bat
and try again.– igventurelli
Did you "install" Tomcat? You just need to download the zip, extract and run the start script.
– Giuliana Bezerra
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
– romarcio