vscode-tomcat icon indicating copy to clipboard operation
vscode-tomcat copied to clipboard

Can not start Server on Windows

Open i-Eugene opened this issue 5 years ago • 11 comments

  • VSCode Version: 1.47.1
  • OS Version: Windows 10
  • Tomcat Extension Version: v0.11.3

Steps to Reproduce:

  1. Add Tomcat Server
  2. Right Click > Start

Error msg: [Tomcat 7.0]: 'E:\Program' is not recognized as an internal or external command, operable program or batch file.

i-Eugene avatar Jul 16 '20 07:07 i-Eugene

'Run on Tomcat Server' The app seems to be published to another webapps path, not the webapps path under Tomcat,‘Open in Browser' is 404 error .

i-Eugene avatar Jul 16 '20 08:07 i-Eugene

Yes, I am having the same issue

Screenshot (187)

princewillzz avatar Jul 19 '20 15:07 princewillzz

This appears to be an issue with the 0.11.3 release and this issue #277 since before it wasn't using the full path and if you have a workspace java.home defined with full path (specifically with a space in it) is when this breaks.

spdermn02 avatar Aug 10 '20 18:08 spdermn02

quickest solution before bug if corrected, is remove workspace specific java.home on windows OR relocate to a directory without a space in the directory path to java. But this definitely is something that should be corrected.

spdermn02 avatar Aug 10 '20 18:08 spdermn02

This is affecting me, too...

image

@spdermn02 I don't have a workspace-specific java.home setting configured, but I do have user-level configurations for java.home and java.configuration.runtimes. This may suggest that your recommendation to remove the workspace-specific java.home property might not actually resolve the problem. I also moved my Tomcat installation to C:/Tomcat and still received the error.

shawmanz32na avatar Aug 10 '20 21:08 shawmanz32na

If you have user-level configuration for those - then it's still an issue since your java is now full-pathed and contains a space. because it is in "Program Files" - if you installed java to a non-space separated folder structure it should still work, but by default since it installs to Program Files - it will now be a problem on windows.

spdermn02 avatar Aug 11 '20 14:08 spdermn02

Also a current workaround to this problem is turn off auto-updates and then install 0.11.2 which was still working before the 0.11.3 version was published from the "develop" branch, and no official release was created in github.

spdermn02 avatar Aug 11 '20 14:08 spdermn02

quickest solution before bug if corrected, is remove workspace specific java.home on windows OR relocate to a directory without a space in the directory path to java. But this definitely is something that should be corrected.

I tried, it is failed. webapps path is wrong

i-Eugene avatar Aug 12 '20 07:08 i-Eugene

I also uninstalled and installed the older version as per this stack overflow post and it resolved the issue for me for now.

bbarman4u avatar Aug 19 '20 23:08 bbarman4u

The problem is in spaces in path to Java binaries. I've changed "java.home": "C:\\PROGRA~1\\Java\\jdk1.8.0_251" and now it works. Here are the details.

kalatchev avatar Nov 21 '20 08:11 kalatchev

Totally I'm having the same problem, is there any possibility that the line that executes directly to the console could append or format the directory for Windows paths? My solution was to change to the previous version (v0.11.2).

VicDCruz avatar Jan 18 '21 15:01 VicDCruz