How to solve java.lang.NoClassDefFoundError?

前端 未结 27 1552
暗喜
暗喜 2020-11-21 06:04

I\'ve tried both the example in Oracle\'s Java Tutorials. They both compile fine, but at run-time, both come up with this error:

Exception in thread \"main\"         


        
27条回答
  •  一向
    一向 (楼主)
    2020-11-21 06:51

    I got this error after a Git branch change. For the specific case of Eclipse,there were missed lines on .settings directory for org.eclipse.wst.common.component file. As you can see below

    Restoring the project dependencies with Maven Install would help.

提交回复
热议问题