|
From: Stuart S. <st...@me...> - 2001-04-30 18:23:31
|
Hi Folks,
I have a problem with System Properties not being passed in from
the jython command line in to the jvm (Sun JDK1.3, Win2000)
The Jython command line allows one to set properties for Python to find,
but this
does not
seem to propagate into the JVM. Incorporating the equivalent into the
Jython code
gave me what I needed for my script/program to work, but in a hardcoded
fashion...
### this works for Jython
System.setProperty("ORBInitRef","EventService=file:C:\IOR\EventServiceForSTUARTS.ior");
System.setProperty("SVCnameroot","NameService");
which was otherwise done for the JVM as :
### this works for Java
java -Xint -DSVCnameroot=NameService
-DORBInitRef="EventService=file:C:\IOR\EventServiceForSTUARTS.ior" ...
### This does not work for getting the data into the JVM from the Jython
command line
jython -DSVCnameroot=NameService
-DORBInitRef="EventService=file:C:\IOR\EventServiceForSTUARTS.ior" ...
There is something I must not have understood in the documentation for
the use of
properties.
Could someone provide insight into how to get properties propagated from
the jython command line in to the JVM (so I can make use of a
System.getProperty(...)
call within my (or other persons) java class.
Thank You,
Stuart
|