Build of Gen EJB fails with error "package javax.ejb does not exist"
search cancel

Build of Gen EJB fails with error "package javax.ejb does not exist"

book

Article ID: 38675

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset

Issue/Introduction

The build of a Gen 8.6 EJB fails with these types of messages in the .out file:

    [javac] Compiling 42 source files to ...\sample.ief\java\classes\P900

    [javac] ...\sample.ief\java\com\ca\SERVER_DETAIL_DEPARTMENT_Bean.java:8: package javax.ejb does not exist

    [javac] import javax.ejb.*;

    [javac] ^

    [javac] ...\sample.ief\java\com\ca\SERVER_DETAIL_DEPARTMENT_Local.java:7: package javax.ejb does not exist

    [javac] import javax.ejb.Local;

Cause

The Build Tool Java token LOC.JAVAEE_HOME has been set to the wrong value resulting in the Java EE SDK file javaeee.jar not being found at build time.

Resolution

The Build Tool will look for the javaee.jar file in the 'lib' sub-directory of whatever value LOC.JAVAEE_HOME is set to.

LOC.JAVAEE_HOME should therefore be set to the Java EE SDK installation directory containing 'lib'. For an example see Gen applications needing Build Tool token LOC.JAVAEE_HOME