import error with javax.persistence
585316Jun 29 2007 — edited Jul 5 2007Hello,
I'm using JDeveloper 10.1.3.2.0. I have existing code that was in CVS that I checked out into JDeveloper. One of the files imports javax.persistence.*, which is not found. There are errors for all the javax.persistence package classes saying the class can't be found.
I'm using Java version /jdk1.5.0_06. This has been defined in JAVA_HOME for JDeveloper. It looks like I really need Java EE 5 SDK which contains javax.persistence. However, when I set JAVA_HOME to that directory, I get errors loading JDeveloper. I tried putting the jar files that contain javax.persistence into the Java SE 1.5 directory, but that doesn't seem to help. Also, the oracle version of persistence does not compile correctly either.
Does anyone know what is going wrong and how to fix it?
Thanks very much!