From: <bc...@wo...> - 2001-01-23 15:19:42
|
[Chris Atkins] >It appears that the problem was that the registry had >python.security.respectJavaAccessibility = true > >When I commented this out of the registry file it worked. > > >Can you please explain the difference between: >The Java system properties: typically passed in on the command line as >options to the java interpreter. > >Jython properties: Specified on the command >line as options to the jython class. See the -D option to the interpreter. > >I believe the top one says if I place the -D parms before the class name on >the java statement as in: >java -Dpython.security.respectJavaAccessibility=0 org.python.util.jython > >The second would be >java org.python.util.jython -Dpython.security.respectJavaAccessibility=0 Correct. And because the "registry" file is read in between, it will overwrites the values assigned as system properties. >I am embedding jython in my code. How would I pass the -D options to the >InteractiveConsole? Take a look at 6.2 in the faq: http://jython.sourceforge.net/cgi-bin/faqw.py?req=all#6.2 You can set python.security.respectJavaAccessibility in the same way. It most be done before creating any python objects, including the creation of the interpreter. regards, finn |