DonJayamanne / javaVSCode

Extension for java development on VSCode (deprecated)
https://marketplace.visualstudio.com/items?itemName=donjayamanne.javaDebugger
MIT License
43 stars 29 forks source link

"Failed to start the program, Timeout after 5000 milli-seconds" & The system cannot find the path specified. #76

Closed RyanHope97 closed 7 years ago

RyanHope97 commented 7 years ago

So I've been trying to get a simple "Hello World!" program to run in the debugger for the past few days, and I can't get it to run by just running the debugger.

Here is my folder structure: untitled

Here are my launch.json and tasks.json: untitled 2

Any help would be appreciated!

Edit: Also when I change externalConsole to false I get "Failed to start the program, Error: spawn \bin\java ENOENT"

RyanHope97 commented 7 years ago

I have fixed the issue by changing"jdkPath" to "D:/Program Files/Java/jdk1.8.0_144/bin". I'm now wondering how you set the set JAVA_HOME enviroment variable?

faustinoaq commented 7 years ago

how you set the set JAVA_HOME enviroment variable?

You need to set this in Advanced System Settings on Control Panel