Search code examples
javaeclipsejpaentitymanager

Eclipse error: 'The import utils cannot be resolved'


I'm working on a simple project in Eclipse. I have an entity class. Now i should instantiate that class and store the object in the database. I have some example projects which use the JpaUtils from the utils package to do this:

import utils.JpaUtils;

These projects run without problem. But in my own project I get the error: 'The import utils cannot be resolved'.

I've checked the Build Path and the same libraries are included in my project as in the example projects.


Solution

  • Problem solved by adding the Utils project to the Build Path of my own project in the Projects menu, thanks to @KevinHook.