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

Cannot use java.home from settings.json if spaces are included #311

Open
agiles231 opened this issue Aug 21, 2020 · 2 comments
Open

Cannot use java.home from settings.json if spaces are included #311

agiles231 opened this issue Aug 21, 2020 · 2 comments

Comments

@agiles231
Copy link

  • VSCode Version: 1.48.1
    3dd905126b34dcd4de81fa624eb3a8cbe7485f13
    x64
  • OS Version: Windows 10 Enterprise
  • Tomcat Extension Version: 0.11.3

Steps to Reproduce:

  1. Assign java.home a value with a space (e.g. "C:\Program Files\Java\jdk-14")
  2. Try to run Tomcat through extension

Command will fail saying "'C:\Program' is not recognized as an internal or external command, operable program or batch file."

However, if JAVA_HOME environment variable contains the same value, tomcat will start fine through extension.

@spdermn02
Copy link

not that it doesn't need to be fixed but try
"C:\PROGRA~1\Java\jdk-14"
in the java.home value.

@Yeshuaihui
Copy link

not that it doesn't need to be fixed but try
"C:\PROGRA~1\Java\jdk-14"
in the java.home value.

Yes, I did, but now it's the exception of "The system cannot find the path specified"

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

3 participants