The build of a Gen EJB fails with this error in the .out file: "package javax.ejb does not exist"
search cancel

The build of a Gen EJB fails with this error in the .out file: "package javax.ejb does not exist"

book

Article ID: 38675

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset Gen - Host Encyclopedia Gen - Run Time Distributed

Issue/Introduction

Symptoms:

The build of a Gen 8.x EJB fails with these types 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.

 

Solution:

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

LOC.JAVAEE_HOME should be set to the Java EE SDK installation directory.

For an example see TEC537910 ("Setting token name LOC.JAVAEE_HOME in Gen 8.0 Build Tool")

Environment

Release: KGNDDL99000-8.5-Gen-DBP Developer License
Component: