Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run Tomcat Server on VS code

I can't run Tomcat server on VS code.

The error message says below

[apache-tomcat-9.0.37]: 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

However my tomcat folder is put on D drive, same folder as source code. I don't know why it's trying to search "C:\Program" folder. I really appreciate it if you could help. Thank you

jdk1.8 Windows10 VS code1.47.2 Tomcat9.0.37

enter image description here

like image 799
lushimo Avatar asked Mar 27 '26 09:03

lushimo


2 Answers

I guess this is broken in latest build of Plug In . I faced similar issue .Now I am reverting back to a plug in version which is 2 months old . This seems to work. I was surprised that VS.Code automatically upgrades the plug in.

like image 185
Nikhil Deshpande Avatar answered Mar 29 '26 23:03

Nikhil Deshpande


On my side, I found that this extension looks your "java.home" path specified in your settings.json before it start, so commenting out the path and the error shall be solved.

like image 21
AbuuJurayj Swabur Buruhan Avatar answered Mar 29 '26 23:03

AbuuJurayj Swabur Buruhan