microsoft / vscode-java-debug

Java Debugger for Visual Studio Code.
Other
528 stars 338 forks source link

Run java not working on external console #1514

Open montimatte opened 2 weeks ago

montimatte commented 2 weeks ago

[I've set to run the programs on external console because i don't like using vs code integrated terminal and everything was working fine until may (the last time that i used java), today i had to run a program i previously coded and when the cmd opens it tells me that 'C:\Program' is not recognized as an internal or external command]

Environment
GitHababi commented 4 days ago

I'm currently experiencing the same issue, I think this has to do with windows not liking spaces in filepaths. In the integrated terminal, the program currently sends the following command:

& 'C:\Program Files\Eclipse Adoptium\jdk-17.0.12.7-hotspot\bin\java.exe' '-agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:60020' '-XX:+ShowCodeDetailsInExceptionMessages' '-cp' 'C:\ProjectFilePath\bin' 'App'