twibiral/obsidian-execute-code

Cannot run java code

Closed this issue · 3 comments

image I'm new to java. Maybe my java path is wrong. Can anybody tell me where is the location of java path? Is it the file named "java.exe"?
image Here is the path I'm recently using.

I think there is something wrong with the spaces before the main function. Try this:

public class HelloWorld{
public static void main(String[] args){
System.out.println("Hello World");
}
}

I think there is something wrong with the spaces before the main function. Try this:

public class HelloWorld{
public static void main(String[] args){
System.out.println("Hello World");
}
}

Thank you!I really appreciate the job you have done!