vscode-plantuml icon indicating copy to clipboard operation
vscode-plantuml copied to clipboard

[renderer1] [error] spawn java ENOENT: Error: spawn java ENOENT

Open majeric opened this issue 3 years ago • 3 comments

Mac Monterey 12.0.1 VS Code 1.63.0 PlantUML v2.16.1

[2021-12-11 17:52:42.110] [renderer1] [error] spawn java ENOENT: Error: spawn java ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19) at onErrorNT (internal/child_process.js:465:16) at processTicksAndRejections (internal/process/task_queues.js:80:21)

majeric avatar Dec 12 '21 01:12 majeric

I had the same issue. You just need to install the JRE for your OS.

yoanisgil avatar Dec 14 '21 21:12 yoanisgil

The reason is that it's running needs java environment. You should install java SDK in your computer.

JiHaoChina avatar Aug 09 '22 07:08 JiHaoChina

Just a head's up to anyone that may ever have the same thing...

If you're using VS Code remote dev containers... You need Java/JRE in the container, OR, you need to open your PlantUML file as a local in a separate VS Code instance or while not using the container.

Can't open the puml "remotely" and using local JRE. It's both remote or both local.

jnz86 avatar Nov 08 '23 01:11 jnz86