Closed stalinstepin closed 7 years ago
Hi @DonJayamanne,
Already refered to the following post: Error: Could not find or load main class TestingJava #28
Tried out everything but hitting the same issue again and again. Can somebody help me?
So here is my Java code:
package modules;
public class IncrementOper {
public static void main(String[] args) { // TODO Auto-generated method stub
int x=9; do { System.out.println("The value of x:" +x); x=x-1; } while (x<=1); }
}
And here is my launch.json file:
{ "version": "0.2.0", "configurations": [
{ "name": "Java", "type": "java", "request": "launch", "stopOnEntry": true, "jdkPath": "/opt/java/jdk1.8.0_131/bin", "cwd": "${workspaceRoot}", "startupClass": "IncrementOper", "options": [ "-classpath", "${workspaceRoot}:." ] }, { "name": "Java Console App", "type": "java", "request": "launch", "stopOnEntry": true, "jdkPath": "/opt/java/jdk1.8.0_131/bin", "cwd": "${fileDirname}", "startupClass": "IncrementOper", "options": [ "-classpath", "${workspaceRoot}:." ], "externalConsole": true } ]
So here is my env details:
java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
@stalinstepin see #28
Hi @DonJayamanne,
Already refered to the following post: Error: Could not find or load main class TestingJava #28
Tried out everything but hitting the same issue again and again. Can somebody help me?
So here is my Java code:
package modules;
public class IncrementOper {
int x=9; do { System.out.println("The value of x:" +x); x=x-1; } while (x<=1); }
}
And here is my launch.json file:
{ "version": "0.2.0", "configurations": [
}