Question

I am currently working on a Java project using openDIS- however, in one of my Java class files, I have started off with the line package openDIS, the same as in the other Java class file that I'm using, but in this one for some reason, I get a compiler error that says

The type javax.persistence.GenerationType cannot be resolved. It is indirectly referenced from required .class files

Any ideas why this is, or how I can resolve it?

The one quick fix it offers is to 'configure build path- clicking this opens a dialog box which shows that I have the 'open-dis_4.08.jar' and 'JRE System Library [JavaSE -1.7]' libraries added to my project... I can't think of any others that I would need...?

Was it helpful?

Solution

The javax.persistence package is part of the Enterprise JavaBeans (EJB) persistence API.

You'll need to use the Java EE SDK instead of Java SE.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top