when i run java file with jdk it always runs the same file whether i am running that file or not
here you can see that i am running this file but it keeps runs the another file this issue with the run java(which is from jdk in vs code)
in terminal :PS D:alljavaJAVA_DATA_STRUCTURE_ALGORITHM> & ‘C:Program FilesJavajdk-22binjava.exe’ ‘–enable-preview’ ‘-XX:+ShowCodeDetailsInExceptionMessages’ ‘-cp’ ‘C:UsersDevesAppDataRoamingCodeUserworkspaceStoragef15e8345020948ee3e7b51b6009bcaceredhat.javajdt_wsJAVA_DATA_STRUCTURE_ALGORITHM_86631f85bin’ ‘Main’
this path is from roaming where there are many class file are there once i tried to delete that folder then that folder is recreated
No output displayed for HelloWorld using CLI, but there is output if I click on Run/Debug Java
On my PC, CLI on VSCode doesn’t display output for HelloWorld as shown below, but clicking on Run/Debug Java does displays output for HelloWorld. On the other hand, my laptop is able to display output either way. How to have CLI display output for my PC?
VSCODE: No output displayed for HelloWorld using CLI, but there is output if I click on Run/Debug Java
On my PC, CLI on VSCode DOESN’T display output for HelloWorld as shown below, but clicking on Run/Debug Java DOES displays output for HelloWorld. On the other hand, my laptop is able to display output either way. How to have CLI display output for my pc?
enter image description here