EJB


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: EJB

Hybrid View

  1. #1
    sree Guest

    EJB


    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


  2. #2
    Paul Clapham Guest

    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
    >




  3. #3
    Cussonneau Guest

    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)

    see you soon

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center