I'm installing Jdk7 and tomcat 7.
The installation of jdk7 was normal without any problem and the system variables have already been created and directed.
After doing this step I was installing tomcat 7, however at the beginning I was giving an installation error because there was already a tomcat service on my machine.
What I did was go to where the other tomcat was installed (obs: it's not the same version), and I removed the server.bat; I just removed it from the folder to be more accurate, then tried to install tomcat 7 again and the installation completed normally. I've made the necessary jre.
However when I tried to start tomcat through the services screen the error below occurred
I went to see the s error logs and they were the ones that appeared to me
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