I am working with Eclipse and I've been doing it since several months ago without any problem. Now I've created a new class in a certain package, but Eclipse does not compile it. So I tried to create a new simple class:
public class Test {
public static void main(String[] args) {
System.out.println("Hello");
}
}
But I get always this error:
Errore: impossibile trovare o caricare la classe principale Test (Error: impossible to find or load main class Test)
I compiled it with cmd: in that case, Eclipse can run the java file, but it can't create the .class file with new edits; it just launches the last version of the compiled file.
I tried to uninstall and reinstall Eclipse, but still got this problem.