Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

enter image description here

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

like image 334
Salvatore Solinas Avatar asked Oct 15 '25 02:10

Salvatore Solinas


1 Answers

Download Eclipse Link 2.X.Y (Version 3.x.y seems to have different libs)

From the Download use the libraries / jars

  • eclipselink/jlib/eclipselink.jar
  • eclipselink/jlib/jpa/jakarta.persistence_X.Y.Z.jar

And place them into your user Library by either

  • The "Manage Libraries ..." Button on the very right of your screenshot
    or
  • Eclipse -> Windows -> Preference -> Java -> Build Path -> UserLibraries
like image 152
Thorsten Niehues Avatar answered Oct 19 '25 01:10

Thorsten Niehues



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!