Search code examples
javaliferay

The import com.liferay.util.bridges cannot be resolved


I'm using Eclipse IDE and I have the following line in my code:

import com.liferay.util.bridges.mvc.MVCPortlet;

But there is a red underline on this line and when hover on it it shows me this error:

The import com.liferay.util.bridges cannot be resolved.

How can I fix it?


Solution

  • Add util-bridges-6.1.0 to your CLASSPATH. Choose version that is compatible with your project.