Error: Could not find or load main class

Posted on 03/04/2012 by Charalampos Chrysikopoulos

Today, being a little tired and having a problem with the monitor of my computer I encountered a problem that I saw for the first time.

After I created a new Portlet plugin in Liferay Studio 1.5.2, I tried to deploy it, but I 've got an error:

Error: Could not find or load main class

This was strange, because it wasn't the first time that I created a new portlet with this version of the Liferay Studio.
The solution to the problem was that the port let I created was defined to be build with SDK plugins 6.1, but to run on a liferay portal 6.0. So, I changed it, and it works again...

This entry was posted in Liferay and tagged liferay6 liferay liferay 6.1 by Charalampos Chrysikopoulos

Add new comment