Today I started to get this error when I tried to start a project in my Eclipse. Some of my projects can be started and some not. I tried to create a simple project with one main class which should print "Hello World!!!" but I wasn't able to start it too. This error started to appear for any new project. I have downloaded this jar and included into project but it didn't help!
I don't understand what is wrong with my Eclipse. Please help!
This is the code:
package test;
public class Test {
public static void main(String[] args) {
System.out.println("Hello World!!!");
}
}
This is the structure:
I tried into 2 versions of Eclipse - Photon and 2020-12
In the preferences I have JRE Home set to here C:Program FilesJavajre1.8.0_281
Also I have reinstalled Java and Eclipse but it didn't help.
question from:
https://stackoverflow.com/questions/65952696/error-could-not-find-or-load-main-class-org-apache-catalina-realm-authenticated 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…