DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3

Thread: EJB

  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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links