compiling visibroker corba example


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: compiling visibroker corba example

  1. #1
    Joar Vatnaland Guest

    compiling visibroker corba example


    I am learning corba using VisiBroker's Object Request Broker. The java file
    I am trying to compile references the class org.omg.CORBA.orb. The error
    I get on compilation is:

    Class org.omg.CORBA.orb not found in type declaration

    I have tried all sorts of variations in my classpath environment variable
    to sort this out. Pointing to the directory where the .jar files with the
    classes I need are, pointing to the directory where the "unjared" classes
    are, pointing to the directory above these directories, etc. Nothing helps.
    I don't know enough about Java to understand what I am doing wrong here.
    Can anyone help?

  2. #2
    Interesting Guest

    Re: compiling visibroker corba example


    "Joar Vatnaland" <joar@synopsys.co.uk> wrote:
    >
    >I am learning corba using VisiBroker's Object Request Broker. The java

    file
    >I am trying to compile references the class org.omg.CORBA.orb. The error

    I wonder about your prob. I wonder that if you have imported org.omg.CORBA.*
    or not. Try importing that package and classes. I hope i understood your
    prob. correctly and my answer will help.


    >I get on compilation is:
    >
    >Class org.omg.CORBA.orb not found in type declaration
    >
    >I have tried all sorts of variations in my classpath environment variable
    >to sort this out. Pointing to the directory where the .jar files with the
    >classes I need are, pointing to the directory where the "unjared" classes
    >are, pointing to the directory above these directories, etc. Nothing helps.
    > I don't know enough about Java to understand what I am doing wrong here.
    > Can anyone help?



  3. #3
    Paul Clapham Guest

    Re: compiling visibroker corba example

    The class that comes with Sun's Java SDK 1.3 is org.omg.CORBA.ORB, not
    org.omg.CORBA.orb. Capitals count!

    PC2

    Joar Vatnaland <joar@synopsys.co.uk> wrote in message
    news:3a0fe0a7$1@news.devx.com...
    >
    > I am learning corba using VisiBroker's Object Request Broker. The java

    file
    > I am trying to compile references the class org.omg.CORBA.orb. The error
    > I get on compilation is:
    >
    > Class org.omg.CORBA.orb not found in type declaration
    >
    > I have tried all sorts of variations in my classpath environment variable
    > to sort this out. Pointing to the directory where the .jar files with the
    > classes I need are, pointing to the directory where the "unjared" classes
    > are, pointing to the directory above these directories, etc. Nothing

    helps.
    > I don't know enough about Java to understand what I am doing wrong here.
    > Can anyone help?




  4. #4
    Joar Vatnaland Guest

    Re: compiling visibroker corba example


    Thank you, it seems a logical thing to do, and also others have suggested
    this. But I have copied the exact source code from the book to be sure I
    have it right. In this code there is no import statements. So unless they
    have done a major mistake, I think I have the right code. The book is 2
    1/2 years old, so it would surprise me if there would be no errata on this
    error if it existed, I did check their website.

    And what is more, I have now come one step further. The compiler is no longer
    complaining about org.omg.CORBA.orb, however, it is now complaining about
    com.inprise.vbroker.CORBA.portable.ObjectImpl

    When I unjar the .jar files following the installation, I can see that there
    is org.omg.CORBA.* classes. But there is no com.inprise.vbroker.*. On the
    other hand, there is com.visigenic.vbroker.*. The various classes in the
    source code and the classes found there, do not correspond to each other.
    So I am wondering if I somehow have the wrong class library?

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