Defining the Environment Variable

PowerDesigner uses an environment variable to generate library configuration for Eclipse project or Ant build script.

  1. Select Tools > Generation Options
  2. Select the Variables node


  3. Add a variable EJB3PERSISTENCE_LIB and, in the value field, enter directory path which you put your persistence provider libraries, for example D:\EJB 3.0\Hibernate Entity Manager\lib.

You can also define this as a Windows system environment variable, but you need to restart PowerDesigner to have it take effect.