Page 1 of 1

JavaBeans Compile and Execute tools configuration??

Posted: Thu Nov 28, 2002 5:31 pm
by Aero
Hallo,

as I start to compile my javabeans programms, I get this message:

E:\Vehicle\VehicleBean.java:2: package javax.ejb does not exist
import javax.ejb.*;
^
E:\Vehicle\VehicleBean.java:6: package javax.ejb does not exist
import javax.ejb.EntityContext;
^
E:\Vehicle\VehicleBean.java:14: package javax.ejb does not exist
import javax.ejb.CreateException;
^
E:\Vehicle\VehicleBean.java:15: package javax.ejb does not exist
import javax.ejb.EJBException;
^
and so on......................

Environment variables are set to:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\J2sdk1.4.0_02\bin;C:\J2sdkee1.3.1\bin;C:\Jakarta-ant-1.5\bin

Best regards,
AC

Re: JavaBeans Compile and Execute tools configuration??

Posted: Tue Dec 10, 2002 4:36 am
by Ged
You should add the full path of the directory structure of wherever the javax.ejb packages are located into the classpath environment variable

eg if you have a package com.mine.somthing and it is stored on your local drive under C:\local, you would need to add c:\local to the classpath in your environment settings.

However if this package is stored in a zip or jar file then you would need to add the full path including the filename into the classpath

eg: c:\oracle\lib\classes12.zip
or

C:\j2sdk1.4.0_01\lib\tools.jar