• Post Reply Bookmark Topic Watch Topic
  • New Topic

idl2java compiler - Please help  RSS feed

 
Ambrose R Tati
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
I've just installed Visibroker3.3 for java on a Windows98/JDK1.3.
When I try to run the idl2java compiler on an idl file I get the following error:
Exception in thread "main" java.lang.ClassCastException: com.sun.corba.se.internal.iiop.ORB
at com.visigenic.vbroker.tools.idl2java.main(idl2java.java:38)
Can somebody please help me?
Thanks in advance
Ambrose
 
Mark Savory
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check your $JAVA_HOME/jre/lib/orb.properties file to see what the ORBClass property is set to. Look at your vbjorb.jar file to find the name of the ORB class for Visibroker. By the way, the vbjorb.jar file should be in your classpath.
 
Ambrose Tati
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mark Savory:
Check your $JAVA_HOME/jre/lib/orb.properties file to see what the ORBClass property is set to. Look at your vbjorb.jar file to find the name of the ORB class for Visibroker. By the way, the vbjorb.jar file should be in your classpath.

Hi Mark,
I have copied vbjorb.jar file into my $JAVA_HOME/jre/lib directory to solve the classpath problem. But it still comes up with the same error. By the way I don't seem to have
$JAVA_HOME/jre/lib/orb.properties file. Does it come with the Visibroker product?
Thanks
Ambrose
 
Ambrose Tati
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
I have copied vbjorb.jar file into my $JAVA_HOME/jre/lib directory to solve the classpath problem. But it still comes up with the same error. By the way I don't seem to have
$JAVA_HOME/jre/lib/orb.properties file. Does it come with the Visibroker product?
Thanks
Ambrose
 
Mark Savory
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's the entire contents of my orb.properties file:
--------------------------------------------------------------
# Make VisiBroker for Java the default ORB
org.omg.CORBA.ORBClass=com.visigenic.vbroker.orb.ORB
org.omg.CORBA.ORBSingletonClass=com.visigenic.vbroker.orb.ORB
--------------------------------------------------------------
Try creating this file in your $JAVA_HOME/jre/lib directory.
 
Ambrose R Tati
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mark Savory:
Here's the entire contents of my orb.properties file:

Hi Mark,
I did exactly as you suggested, but no luck. It still comes with the same error. Thanks for your help anyway.
Ambrose
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!