i'm working with writing Enterprise Application(Monica Pawlan).
I have compiled Calc.java. Its compiled and .class is created in Beans directory
When i try to compile CalcHome.java
i get the following error.
THE ERROR
class Beans.Calc not found.
Calc create() throws CreateException, RemoteException.
COMPILE BATCH
set J2EE_HOME=e:\j2ee\j2sdkee1.2.1
set CPATH=.;%J2EE_HOME%\lib\j2ee.jar
javac -d . -classpath %CPATH% /beans/CalcHome.java
any help reg. above is appreciated
Thanx in advance
HAND
Sreepad
08-04-2000, 11:44 AM
Paul Clapham
Re: EJB
If the class file is in the Beans directory and the compiler can't find it,
then the Beans directory is not in your classpath. I see that "." (the
current directory) is in your classpath. So if you change the current
directory to Beans before compiling, you should have better luck.
sree <iamsree@yahoo.com> wrote in message news:398aaccf$1@news.devx.com...
>
> Hi,
>
> MY PROBLEM
>
> i'm working with writing Enterprise Application(Monica Pawlan).
> I have compiled Calc.java. Its compiled and .class is created in Beans
directory
> When i try to compile CalcHome.java
> i get the following error.
>
> THE ERROR
>
> class Beans.Calc not found.
> Calc create() throws CreateException, RemoteException.
>
> COMPILE BATCH
>
> set J2EE_HOME=e:\j2ee\j2sdkee1.2.1
> set CPATH=.;%J2EE_HOME%\lib\j2ee.jar
> javac -d . -classpath %CPATH% /beans/CalcHome.java
>
> any help reg. above is appreciated
>
> Thanx in advance
>
> HAND
> Sreepad
>
08-07-2000, 10:37 AM
Cussonneau
Re: EJB
"sree" <iamsree@yahoo.com> wrote:
>
>Hi,
>
>MY PROBLEM
>
>i'm working with writing Enterprise Application(Monica Pawlan).
>I have compiled Calc.java. Its compiled and .class is created in Beans directory
>When i try to compile CalcHome.java
>i get the following error.
>
>THE ERROR
>
>class Beans.Calc not found.
>Calc create() throws CreateException, RemoteException.
>
>COMPILE BATCH
>
>set J2EE_HOME=e:\j2ee\j2sdkee1.2.1
>set CPATH=.;%J2EE_HOME%\lib\j2ee.jar
>javac -d . -classpath %CPATH% /beans/CalcHome.java
>
>any help reg. above is appreciated
>
>Thanx in advance
>
>HAND
>Sreepad
>
Have you define a package for your beans ?
verify you have the line
package Beans;
at the begining of Calc.java (Remote Interface) CalcHome.java (Home Interface)
CalcBean.java (Bean Implementation) CalcPK.java (Primary Key Class)