ionic-team / vscode-extension

15 stars 0 forks source link

Trying to use the Run Android feature, but command is returning an error for JAVA_HOME #132

Closed plasmy closed 1 year ago

plasmy commented 1 year ago

When I run the command, I get the following:

Screenshot 2023-08-19 at 5 28 52 PM

However, running the same command on terminal works perfectly.

dtarnawsky commented 1 year ago

You can set the location of JAVA_HOME in Settings > Advanced.

The reason you are getting this error is the VS Code may use a different shell when running node processes than the terminal shell you use. If they dont have the same environment variables you will get this error.