Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run java not working on external console #1514

Closed
montimatte opened this issue Sep 19, 2024 · 3 comments
Closed

Run java not working on external console #1514

montimatte opened this issue Sep 19, 2024 · 3 comments

Comments

@montimatte
Copy link

montimatte commented Sep 19, 2024

[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
  • Operating System: Win 11 23H2
  • JDK version: 22
  • Visual Studio Code version: 1.93.1 (user)
  • Java extension version: 0.29.0
  • Java Debugger extension version: 0.58.0
@GitHababi
Copy link

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' 

@testforstephen
Copy link
Contributor

Cannot reproduce it in Windows 11 machine. Is this issue related to your application type or your machine environment? Can you reproduce it in other Java programs?

Copy link

This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants