Building the Gen 8.6 sample model server P900 as a Java EJB fails with "error: package com.ca.gen.ejb does not exist"
Extract from P900.out file:
********** [javac] C:\Users\Administrator\Documents\CA\Gen 8.6\Models\samp86a.ief\java\P900.XML:303: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 42 source files to C:\Users\Administrator\Documents\CA\Gen 8.6\Models\samp86a.ief\java\classes\P900
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] C:\Users\Administrator\Documents\CA\Gen 8.6\Models\samp86a.ief\java\com\ca\SERVER_DETAIL_DEPARTMENT_Bean.java:15: error: package com.ca.gen.ejb does not exist
[javac] import com.ca.gen.ejb.EJBProcedureStepContext;
...
**********
Gen Build Tool
Java EJB server
The "Enterprise JavaBeans" feature was not selected at Gen 8.6 install time.
Per doc. page Installing Gen on the Windows Platform, a Gen 8.6 Typical install will not include the "Enterprise JavaBeans" feature which requires using the Custom option.
To resolve the problem:
In the Build Tool profile the token LOC.JAVAEE_HOME also needs to be configured correctly.
Here are some relevant articles.
Gen applications needing Build Tool token LOC.JAVAEE_HOME
Build of Gen EJB fails with error "package javax.ejb does not exist"