Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not start Server on Windows #308

Open
i-Eugene opened this issue Jul 16, 2020 · 11 comments
Open

Can not start Server on Windows #308

i-Eugene opened this issue Jul 16, 2020 · 11 comments

Comments

@i-Eugene
Copy link

  • 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 i-Eugene changed the title Can not start on Windows Can not start Server on Windows Jul 16, 2020
@i-Eugene
Copy link
Author

i-Eugene commented Jul 16, 2020

'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
Copy link

princewillzz commented Jul 19, 2020

Yes, I am having the same issue

Screenshot (187)

@spdermn02
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link
Author

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
Copy link

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

@kalatchev
Copy link

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
Copy link

VicDCruz commented Jan 18, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants