Search code examples
javacorbaidljacorb

CORBA JacORB idlj CosNotification/EventType is an undeclared type?


I have an idl file which I am trying to generate Java bindings using the IDL-to-Java Compiler idlj and using the JacORB omg idl files. Below is the idl file I am trying to compile where I am getting the error. What is causing the error?

/jacorb-3.8/idl/omg//CosNotifyComm.idl (line 13): CosNotification/EventType is an undeclared type. exception InvalidEventType { CosNotification::EventType type; }; ^ /jacorb-3.8/idl/omg//orb.idl (line 9): Expected one of typedef' >struct' union'enum' const'exception' interface'valuetype' >module'; encountered'. typeprefix CORBA "omg.org">

and below is the idl file I am trying to compile with the following command idlj -fall -i "/jacorb-3.8/idl/omg/" NotificationIRPSystem.idl

NotificatoinIRPSystem.idl


Solution

  • I've had the same problem with Idlj. I could compile with jacORB/bin/ idl as follows. Link: http://www.jacorb.org/download.html

    ./idl -I. NotificationIRPSystem.idl