|
From: Kevin B. <kb...@ca...> - 2001-10-31 16:48:07
|
Sounds like you've probably got a classpath issue.
Check that you're importing the right PythonInterpreter (org.python.util.PythonInterpreter, IIRC), and that you're using the right Properties (java.util.Properties) and that the jython.jar file is early in your classpath.
You may also try:
javap -classpath YOUR_CLASSPATH org.python.util.PythonInterpreter
Compiled from PythonInterpreter.java
public class org.python.util.PythonInterpreter extends java.lang.Object {
org.python.core.PyModule module;
protected org.python.core.PySystemState systemState;
org.python.core.PyObject locals;
public static void initialize(java.util.Properties, java.util.Properties, java.lang.String[]);
...
This should show you the initialize method, as expected.
If this fails, please send a message including your classpath, directory where jython.jar is installed, jython version, exact code & error message.
kb
"Abraham, Shabu" wrote:
>
> Dear Sir,
>
> When I try to compile the following lines in java script , before making an
> instance of PythonInterpreter,
>
> Properties props = new Properties();
> props.setProperty("python.path", "C:/dist/comjob:lib.custom");
> PythonInterpreter.initialize(System.getProperties(), props, new String[]
> {""});
>
> I get an error that intialize(Properties, Properties, String[]) method not
> found in PythonInterpreter.
>
> In the documentation at the site , I could find the method intialize() for
> PythonInterpreter.
>
> Kindly send me the solution if I am going wrong somewhere.
>
> Regards,
> Shabu Abraham
> Sha...@pp...
>
> _______________________________________________
> Jython-dev mailing list
> Jyt...@li...
> https://lists.sourceforge.net/lists/listinfo/jython-dev
|