jython-dev

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
Shabu.abraham@...

[Abraham, Shabu]
>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.
Maybe you forgot to import the java.util package?
import java.util.*;
Without java.util and using the jikes compiler, I get this error message
(among other errors):
> 8. PythonInterpreter.initialize(System.getProperties(), props, new String[] {""});
>*** Error: No match was found for method "initialize(java.util.Properties, Properties, java.lang.String[])".
It kind of look like the message you describe.
regards,
finn