Mailing List Archive

Pb. with JPython & VisiBroker
Hi,

I try to use the scripting facilities of JPython with VisiBroker for Java
ORB.
But I've a problem to make an instance of the ORB.
Here is a copy of the output :

C:\JPython-1.1beta2>set PATH
PATH=C:\jdk1.1.7B\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.JS

C:\JPython-1.1beta2>set CLASSPATH
CLASSPATH=C:\jdk1.1.7B\lib\classes.zip;C:\vbroker\lib\vbjorb.jar;C:\vbroker\
lib\vbjapp.jar

C:\JPython-1.1beta2>pythonjdk11
JPython 1.1beta2 on java1.1.7B
Copyright (C) 1997-1999 Corporation for National Research Initiatives
>>> from org.omg.CORBA import *
>>> orb = ORB.init(None, None)
Traceback (innermost last):
File "<console>", line 1, in ?
NameError: ORB
>>>

And my pythonjdk11.bat file is:
----------------------------------------------------------------------------
----------------
@echo off
REM This file generated by JPython installer
REM Created on Mon Jun 21 12:36:59 CEST 1999 by ARNULFO_F
"C:\jdk1.1.7B\bin\java.exe" -Dpython.home=C:\JPython-1.1beta2 -classpath
"C:\JPython-1.1beta2\jpython.jar;%CLASSPATH%" org.python.util.jpython %1 %2
%3 %4 %5 %6 %7 %8 %9
----------------------------------------------------------------------------
----------------

Can you help me out of this trouble?
Thanks!!
Pb. with JPython & VisiBroker [ In reply to ]
Franck Arnulfo wrote:

> I try to use the scripting facilities of JPython with VisiBroker for Java
> ORB.
> But I've a problem to make an instance of the ORB.
> Here is a copy of the output :
>
> C:\JPython-1.1beta2>set PATH
> PATH=C:\jdk1.1.7B\bin
> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.JS
>
> C:\JPython-1.1beta2>set CLASSPATH
> CLASSPATH=C:\jdk1.1.7B\lib\classes.zip;C:\vbroker\lib\vbjorb.jar;C:\vbroker\
> lib\vbjapp.jar
>
> C:\JPython-1.1beta2>pythonjdk11
> JPython 1.1beta2 on java1.1.7B
> Copyright (C) 1997-1999 Corporation for National Research Initiatives
> >>> from org.omg.CORBA import *
> >>> orb = ORB.init(None, None)
> Traceback (innermost last):
> File "<console>", line 1, in ?
> NameError: ORB
> >>>

I known, this is not much help, but I can access the ORB just fine.

[c:\storage]jpython
packageManager: processing new jar,
"C:\java\JPython-1.1beta2\jpython.jar"
packageManager: processing new jar, "C:\storage\vbjorb.jar"
packageManager: processing new jar, "C:\java\jdk1.1.8\lib\classes.zip"
JPython 1.1beta2 on java1.1.8
Copyright (C) 1997-1999 Corporation for National Research Initiatives
>>> from org.omg.CORBA import *
>>> ORB.init(None, None)
com.visigenic.vbroker.orb.ORB@20db91
>>>

I didn't properly install Visibroker. I just added a vbjorb.jar I found
from a altavista search to my CLASSPATH. Consequently, I have no clue to
which version of vbjorb.jar I'm using.

--
Regards,
Finn Bock