The class 'javax.persistence.Convert' is required to be in the selected libraries

旧巷老猫 提交于 2020-01-25 00:48:11

问题


When selecting a user library as the JPA implementation in Eclipse Dali's project settings, the following error message is displayed:

The class 'javax.persistence.Convert' is required to be in the selected libraries

But the class javax.persistence.Convert is correctly included in the classpath of my user library, so how can this problem be resolved?


回答1:


This error message may arise, when the persistence jar file of the selected user library is part of your Eclipse project folder (for example in a subdirectory of the project). Eclipse Dali doesn't find the class in this case.

If you try moving this directory out of the project folder and try again, it may work.

It might be a bug.



来源:https://stackoverflow.com/questions/56111116/the-class-javax-persistence-convert-is-required-to-be-in-the-selected-librarie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!