简体   繁体   中英

Java run wont work in vscode

Hello i have a simple program in java using vscode editor and i am working in Ubuntu 16.04 .

I am using this java-debug extension with command alt + c to compile and alt + r to run the compiled program of the selected files.

Compile OK

编译好

No output on RUN

运行不好

But the run process wont work while the command compile works perfectly. Did i missed something?

Please check if you have added custom task for Java. Tasks.json need to be updated.

{
    "version": "0.1.0",
    "command": "javac",
    "showOutput": "always",
    "isShellCommand": true,
    "args": ["-d","${workspaceRoot}\\build\\classes","${workspaceRoot}\\src\\main\\java\\*.java"]
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM