No Windows, clique em Start + Start Menu + Control Panel.
No Control Panel, clique System and Maintenance + System.
Em System, clique Advanced System Settings.
Em System Properties, na pasta Advanced, clique em Environment Variables....
Em Environment Variables, no grupo System variables, clique em New....
Em New System Variable, forneça:
a. Em Variable name, insira o identificador JAVA_HOME. b. Em Variable value, insira o caminho de instalação do JavaTM Development Kit C:\TOTVS\Java\jdk1.6.0_23.
Em New System Variable, clique em Ok.
Em Environment Variables, clique em OK.
Instalação do Apache TomcatTM como serviço
Acesse o prompt de comandos como Administrador.
Em Administrator: C:\Windows\system32\Cmd.exe, acesse a pasta onde se encontram os binários do Apache TomcatTM.
Em Administrator: C:\Windows\system32\Cmd.exe, execute o arquivo totvswebserver.bat com o parâmetro install.
Créditos
Apache TomcatTM Apache Tomcat is either registered trademark or trademark of the Apache Software Foundation in the United States and/or other countries, and are used with permission as of 2011. The Apache Software Foundation has no affiliation with and does not endorse, or review the materials provided at this event, which is managed by TOTVS S/A.
JavaTM Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.