adashen / vscode-tomcat

Other
65 stars 35 forks source link

Can not start Server on Windows #308

Open i-Eugene opened 4 years ago

i-Eugene commented 4 years ago

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 commented 4 years ago

'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 .

princewillzz commented 4 years ago

Yes, I am having the same issue

Screenshot (187)

spdermn02 commented 4 years ago

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 commented 4 years ago

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.

shawmanz32na commented 4 years ago

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.

spdermn02 commented 4 years ago

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 commented 4 years ago

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.

i-Eugene commented 4 years ago

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

bbarman4u commented 4 years ago

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

kalatchev commented 4 years ago

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.

VicDCruz commented 3 years ago

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).