May be you should look in System properties:
import java.lang.System as System
I think the jar is there.
No, it doesnít work. Besides, I used the code below, not work, either.
†††††††† systemState.path.remove(new PyString(jarFile.getAbsolutePath()));
There is an important clue that if I use pythoninterpreter instance to execute a piece of python code like this :
then , †the console report the information below:
*sys-package-mgr*: processing modified jar, 'E:\jars\catalina-ant-jmx.jar'
Then I canít delete the file : catalina-ant-jmx.jar.
However, I found that I can delete the jar file without executing any python code.
In a word, I can delete the jar file imported by jython interpreter if I didnít execute any python code with jython interpreter. I canít delete any jar files if I execute any python code because the jar files is modified by something.
Is there anything wrong with the interpreter action when processing the execution of† python code?