问题
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