Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

import error with javax.persistence

585316Jun 29 2007 — edited Jul 5 2007
Hello,

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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 2 2007
Added on Jun 29 2007
9 comments
1,809 views