Jenkins Service Fails to Start

Jenkins setup:

Operating System: 64-bit Windows 10
Adoptium JDK: OpenJDK11U-jdk_x64_windows_hotspot_11.0.22_7
Cannot run the snippet, because Jenkins does not start, so I cannot access the Script Console
I’m running Jenkins directly
Not accessing Jenkins through a reverse proxy
How I installed Jenkins: Windows installer - Not launching any involved agents
Web browser: Version 122.0.6261.70 (Official Build) (64-bit)

Jenkins fails to start and generates the following Java stack trace:

2024-02-27 01:58:21.957+0000 [id=1] INFO winstone.Logger#logInternal: Beginning extraction from war file
2024-02-27 01:58:22.004+0000 [id=1] WARNING winstone.Logger#logInternal: Failed to delete dirs C:\tools\Jenkins\war --pluginroot=C:\tools\Jenkins\plugins
java.nio.file.InvalidPathException: Illegal char <:> at index 35: C:\tools\Jenkins\war --pluginroot=C:\tools\Jenkins\plugins
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.io.File.toPath(File.java:2329)
at winstone.HostConfiguration.deleteRecursive(HostConfiguration.java:341)
at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:264)
at winstone.HostConfiguration.(HostConfiguration.java:88)
at winstone.HostGroup.initHost(HostGroup.java:66)
at winstone.HostGroup.(HostGroup.java:45)
at winstone.Launcher.(Launcher.java:188)
at winstone.Launcher.main(Launcher.java:496)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at executable.Main.main(Main.java:351)
2024-02-27 01:58:22.004+0000 [id=1] WARNING winstone.Logger#logInternal: Failed to recreate dirs C:\tools\Jenkins\war --pluginroot=C:\tools\Jenkins\plugins
java.nio.file.InvalidPathException: Illegal char <:> at index 35: C:\tools\Jenkins\war --pluginroot=C:\tools\Jenkins\plugins
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.io.File.toPath(File.java:2329)
at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:266)
at winstone.HostConfiguration.(HostConfiguration.java:88)
at winstone.HostGroup.initHost(HostGroup.java:66)
at winstone.HostGroup.(HostGroup.java:45)
at winstone.Launcher.(Launcher.java:188)
at winstone.Launcher.main(Launcher.java:496)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at executable.Main.main(Main.java:351)
2024-02-27 01:58:22.004+0000 [id=1] INFO winstone.Logger#logInternal: Jetty shutdown successfully
java.nio.file.InvalidPathException: Illegal char <:> at index 35: C:\tools\Jenkins\war --pluginroot=C:\tools\Jenkins\plugins\META-INF\MANIFEST.MF
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.io.File.toPath(File.java:2329)
at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:287)
at winstone.HostConfiguration.(HostConfiguration.java:88)
at winstone.HostGroup.initHost(HostGroup.java:66)
at winstone.HostGroup.(HostGroup.java:45)
at winstone.Launcher.(Launcher.java:188)
at winstone.Launcher.main(Launcher.java:496)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at executable.Main.main(Main.java:351)
2024-02-27 01:58:22.004+0000 [id=1] SEVERE winstone.Logger#logInternal: Container startup failed
java.nio.file.InvalidPathException: Illegal char <:> at index 35: C:\tools\Jenkins\war --pluginroot=C:\tools\Jenkins\plugins\META-INF\MANIFEST.MF
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.io.File.toPath(File.java:2329)
at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:287)
at winstone.HostConfiguration.(HostConfiguration.java:88)
at winstone.HostGroup.initHost(HostGroup.java:66)
at winstone.HostGroup.(HostGroup.java:45)
at winstone.Launcher.(Launcher.java:188)
at winstone.Launcher.main(Launcher.java:496)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at executable.Main.main(Main.java:351)

Any suggestions? Thanks!

The Java stack trace seemed to be complaining about the : character, but the issue was with the unpaired double quotation marks in the various paths that I had. I removed those, and now it works. A fresh look at the issue and help from my team resolved the issue. It also works when I have paired double quotation marks in the paths in the arguments XML tag in jenkins.xml, see below:

<executable>%JAVA_HOME%\bin\java.exe</executable>  <arguments>-Xrs -Xms3g -Xmx3g -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir="C:\tools\Jenkins\tmp" -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/Chicago -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\tools\Jenkins\jenkins.war" --httpPort=8080 --webroot="C:\tools\Jenkins\war" --pluginroot="C:\tools\Jenkins\plugins"</arguments>