I'm trying to launch my java file Test.java like this:
java -cp . gcomputing.Test
I'm here: /src
and my Test.java file is here: /src/gcomputing/Test.java
My Test.java file :
package gcomputing;
public class Test {
public static void main(String[] args) {
System.out.println("Hi");
}
}
The output is:
Error: Could not find or load main class gcomputing.Test
I already tried those links: