I'm trying to execute a simple java code.
the code worked fine using comand line : javac Go.java and java Go, but in Spring Tool Suite 3, the code did not work and I got the error below.
Note that I'm using jdk1.8.0_211
package com.test;
public class Go {
public static void main(String[] args) {
System.out.println("test");
}
}
I expect print test, but I get this error :
Error: Can not find or load the main class.