Re: ORbacus java client and C++ server

Darren Middleman <[email protected]>
Newsgroups gmane.comp.corba.orbacus
Organization IONA | Making Software Work Together TM
Message-ID <[email protected]>
Hi Anoop,

On Wed, Mar 02, 2005 at 06:59:22PM +0530, Anoop Ahamad wrote:
> I am using ORBACUS 4.2.x, JDK 1.4.x, ORBACUS for java 4.2.x in Windows 
> 2000 platform.
> 
> I have started the namesev and the C++ server also.
> 
> When I am trying from a c++ client It is working.
> 
> But when I am running the java client it is showing the error listed below
> 
> The command I used to run the java program is
> 
> java -Xbootclasspath/p:OB.jar JClient -ORBconfig orb.cfg
> and 
> orb.cfg file content is  
> ooc.service.NameService=iioploc://192.168.1.16:8001/NameService
> 
> 
> when I am running this it is giving the error:
> 
> 
> Exception in thread "main" org.omg.CORBA.INITIALIZE: can't instantiate default O
> RB implementation com.ooc.CORBA.ORB  vmcid: 0x0  minor code: 0  completed: No
>         at org.omg.CORBA.ORB.create_impl(ORB.java:308)
>         at org.omg.CORBA.ORB.init(ORB.java:345)
>         at JClient.main(JClient.java:17)
> 
> 
> I have set the path of OB.jar in classpath variable.
> 
> [...]

I think the problem you are running into here is the way you are specifying
the -Xbootclasspath option.  You should make sure that the path and the
name of the JAR file are in your CLASSPATH environment variable, and then
pass this to the -Xbootclasspath option.  For example,

  set CLASSPATH=<JOB-install-path>\lib\OB.jar;%CLASSPATH%

  java -Xbootclasspath/p:%CLASSPATH% JClient -ORBconfig orb.cfg

Regards,
Darren

-- 
Darren Middleman, Software Engineer
Team Orbacus - Your CORBA Source
Email: mailto:[email protected]
WWW: http://www.orbacus.com/
_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.