java error: Can not find or load the main class

Said sweep problem:

Project Name adjusted from the original com.mp.qms.report.biz adjusted after com.mp.busicen.mec.qms.report.biz.
Project run directly in IDEA, but packaged to deploy server starts reported the following error.

Error: Can not find or load the main class ReportProvider

See /bin/com.mp.busicen.mec.qms.report.biz deployment package file shown in the figure can be seen. Marked part is to start class. But why can not find it?
Here Insert Picture Description

Adjustment

As shown below, after adjustment sake path (path comprising a packet), a smooth start.
Here Insert Picture Description

Cause Analysis:

Prior to the project, all the packages are the same prefix, the revised part of the package were not the same. Not identified package names preceding omitted, it is necessary to use detailed paths.

Published 21 original articles · won praise 47 · views 3917

Guess you like

Origin blog.csdn.net/richyliu44/article/details/104939155