Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
302 views
in Technique[技术] by (71.8m points)

java - Error: Could not find or load main class org.apache.catalina.realm.AuthenticatedUserRealm in Eclipse

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:

enter image description here

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...