Rohit Batta
Rohit Batta

Reputation: 482

Not able to create or convert a project in to JPA Project

I am trying to convert one project to JPA enabled project by assigning "JPA Facet" from preferences > Project Facets in eclipse.

But, there is no option to select "JPA Facets".

enter image description here

After analysis, i found that i am even not able to create a new JPA project with eclipse, i am having.

enter image description here

I am using eclipse JUNO. I think, i am missing something in configuration. I have tried installing eclipselink<>.jar to userlibrary configuration. But, it is not working.

Reason which i found is also mentioned in below duplicate question.
Cannot create JPA Facet: “project facet jpt.jpa could not be found”

In this also, it is mentioned that update to new eclipse. But, is there any way to find out, what is messed up in existing eclipse.

Upvotes: 6

Views: 10013

Answers (1)

Nebulosar
Nebulosar

Reputation: 1855

Here is what I did and it worked:

  1. Go to help -> install new software

  2. In work with select Neon - http://download.eclipse.org/releases/neon (in my case)

  3. In here you find "Web, XML, Java EE and OSGi Enterprise Development".
    Open it!

  4. Just installed everything that included the title "JPA"

  5. Click finish, install, restart Eclipse

Now try again to find your facet!

Upvotes: 10

Related Questions