Title: Strange Console Output in VSCode Terminal for Java Code Execution · Issue #4006 · redhat-developer/vscode-java · GitHub
Open Graph Title: Strange Console Output in VSCode Terminal for Java Code Execution · Issue #4006 · redhat-developer/vscode-java
X Title: Strange Console Output in VSCode Terminal for Java Code Execution · Issue #4006 · redhat-developer/vscode-java
Description: Strange Console Output in VSCode Terminal for Java Code Execution I'm encountering an issue when running Java code in Visual Studio Code. The output in the integrated terminal is not displaying correctly. Specifically, when I run a simpl...
Open Graph Description: Strange Console Output in VSCode Terminal for Java Code Execution I'm encountering an issue when running Java code in Visual Studio Code. The output in the integrated terminal is not displaying cor...
X Description: Strange Console Output in VSCode Terminal for Java Code Execution I'm encountering an issue when running Java code in Visual Studio Code. The output in the integrated terminal is not displaying...
Opengraph URL: https://github.com/redhat-developer/vscode-java/issues/4006
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Strange Console Output in VSCode Terminal for Java Code Execution","articleBody":"### Strange Console Output in VSCode Terminal for Java Code Execution\n\nI'm encountering an issue when running Java code in Visual Studio Code. The output in the integrated terminal is not displaying correctly. Specifically, when I run a simple \"Hello World\" program in Java, the output appears as gibberish or is missing entirely.\n\nThe same code works perfectly when executed in an external terminal (CMD), but the issue persists in the VSCode integrated terminal.\n\n**Environment:**\nVSCode Version: 1.98.2\nJDK Version: OpenJDK 17.0.14 (2025-01-21)\nOperating System: [Windows 10]\n\n\n\n**Extensions Installed:**\nJava Extension Pack\nLanguage Support for Java(TM) by Red Hat\nDebugger for Java\n\n**Additional Information:**\nI tried setting the java.debug.settings.console to integratedTerminal, and it did not resolve the issue.\nI added various VM arguments (e.g., -Xlog:disable), but the issue persists.\nRestarting the terminal sometimes restores the correct output, but it reverts back to the issue after re-running the code.\n\n**i used a simple print out code :**\n```java\npublic class code1 {\n\n public static void main(String[] args) {\n System.out.println(\"hello world\");\n }\n}\n``` \n**the output :**\n```\nPS D:\\coddeeee> d:; cd 'd:\\code'; & 'C:\\Program Files\\Eclipse Adoptium\\jdk-17.0.14.7-hotspot\\bin\\java.exe' '-XX:+ShowCodeDetailsInExceptionMessages' '-cp' 'C:\\Users\\ksa54\\AppData\\Roaming\\Code\\User\\workspaceStorage\\c464b3fa11c8c4ffe8ac1c98f25acbde\\redhat.java\\jdt_ws\\coddeeee_ea30c6a5\\bin' 'code1'\nhello world1c8c4ffe8ac1c98f25acbde\\x5credhat.java\\x5cjdt_ws\\x5ccoddeeee_ea30c6a5\\x5cbin' 'code1' ;26467956-25f2-493c-bdf7-a3ffc378354c\n``` \n\n\n\n_Could you provide guidance or a fix to ensure that the output of Java programs is correctly displayed in the VSCode integrated terminal?_\n\n","author":{"url":"https://github.com/Abyox","@type":"Person","name":"Abyox"},"datePublished":"2025-04-02T08:12:13Z","url":"https://github.com/redhat-developer/vscode-java/issues/4006"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c68f8e56-3c85-0af2-923c-01be5afa8b26 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBE4:137D26:109CF5:1616DD:6AF795A3 |
| html-safe-nonce | b818ae9ab027ed62ff362e87a3fec97bfb4c901eb71dbba5a5e1b36dfa14ab84 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkU0OjEzN0QyNjoxMDlDRjU6MTYxNkREOjZBRjc5NUEzIiwidmlzaXRvcl9pZCI6IjQ5NjY5OTAzMDc5Mjk4NTUzOTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3142791b9ecee525a9340bd640950eb669f2028eaaa6cb777e74e2d5bacd721d |
| hovercard-subject-tag | issue:2965549358 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/redhat-developer/vscode-java/4006/issue_layout |
| twitter:image | https://opengraph.githubassets.com/236dad4a64adf1a9dfa82ec106900ac5af31f5d055d162eb38f52ed5ff8cfe9a/redhat-developer/vscode-java/issues/4006 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/236dad4a64adf1a9dfa82ec106900ac5af31f5d055d162eb38f52ed5ff8cfe9a/redhat-developer/vscode-java/issues/4006 |
| og:image:alt | Strange Console Output in VSCode Terminal for Java Code Execution I'm encountering an issue when running Java code in Visual Studio Code. The output in the integrated terminal is not displaying cor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Abyox |
| hostname | github.com |
| expected-hostname | github.com |
| None | 17b68148d5fb9d68a4cbd4de6ea895f1e8a80aa80f8a98634ded363385bd095e |
| turbo-cache-control | no-preview |
| go-import | github.com/redhat-developer/vscode-java git https://github.com/redhat-developer/vscode-java.git |
| octolytics-dimension-user_id | 11033755 |
| octolytics-dimension-user_login | redhat-developer |
| octolytics-dimension-repository_id | 65561709 |
| octolytics-dimension-repository_nwo | redhat-developer/vscode-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 65561709 |
| octolytics-dimension-repository_network_root_nwo | redhat-developer/vscode-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | db1293efa4b8076f8749360e3689ed9bfb377a52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width