Startup Tomcat: The filename, directory name, or volume label syntax is incorrect. Press Enter or Esc to exit

222 Views Asked by At

Using

I've installed Tomcat 8 (ignore the 10.1.7 that's on pic, once that's not compatible with Java 8) into my machine as Windows Service, when I startup, a new console is created with message:

enter image description here

The filename, directory name, or volume label syntax is incorrect.   Press Enter or Esc to exit... 

enter image description here and http://localhost:8080 returns ERR_CONNECTION_REFUSED

Thanks in advance, you for your help.

Win 11, openjdk version "1.8.0_362", Tomcat 8 strong text I was expecting http://localhost:8080 to show Tomcat webpage running local

1

There are 1 best solutions below

0
life888888 On BEST ANSWER

Windows Install Tomcat 8 as Windows Service

Install JDK 8

https://adoptium.net/temurin/releases/?version=8

  • Operating System: Windows
  • Architecture: x64
  • Package Type: JDK
  • Version: 8
  • .msi

click .msi

JDK Insatll Options: Please select

  • Set JAVA_HOME variable
  • JavaSoft(Oracle) registry keys

Install Tomcat 8

https://tomcat.apache.org/download-80.cgi

8.5.87 -> Binary Distributions -> Core: -> 32-bit/64-bit Windows Service Installer

Download exe, Click ,run install exe

Choose Components, options please select all items

  • Tomcat -> core , Service Startup ,Native

  • Start Menu Items

  • Documentation

  • Manager

  • Host Manager

  • Examples

Completing Apache Tomcat Setup

  • Run Apache Tomcat
  • Show Readme

Then open your browser http://localhost:8080

You don't need to set any environment variables, just follow the above steps and everything will be done.