Shift 'n Tab
Shift 'n Tab

Reputation: 9443

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

compile ok

No output on RUN

run not ok

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

Upvotes: 0

Views: 5199

Answers (1)

piyush anwekar
piyush anwekar

Reputation: 72

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"]
}

Upvotes: 1

Related Questions