문제

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...?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top