Search code examples
importjdo

Why "import javax.jdo.* "caused error?


I have a class uses the following lines, it works fine in a Google App Engine project:

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

But when I included this class in another project, it cause error :

package javax.jdo.annotations does not exist

What should I do to find javax.jdo.* ?


Solution

  • Add the JDO jar file to the class path.