Message2226
Logged In: YES
user_id=105844
Sorry but the two files javapath.py and javaos.py use
import statements which are not compatible to the suggested
patch:
This means that without a change to these 2 files, Jython
21 can only be started if the package scan took place. We
can fix that in applying the following changes.
javapath.py:
------------
replace
import java
with
import sys
sys.add_package( "java" )
sys.add_package( "java.io" )
sys.add_package( "java.lang" )
javaos.py:
----------
replace
import java
from java.io import File, BufferedReader,
InputStreamReader, IOException
with
import sys # move some lines upwards
sys.add_package( "java" )
sys.add_package( "java.io" )
sys.add_package( "java.lang" )
from java.io import BufferedReader
from java.io import File
from java.io import IOException
from java.io import InputStreamReader
from java.lang import Runtime
from java.lang import System
and replace all occurrences of 'java.lang.' and 'java.io.'
with '' (an empty string)
I hope this gives an idea!
Best wishes,
Oti. |
|
Date |
User |
Action |
Args |
2008-02-20 17:18:17 | admin | link | issue525092 messages |
2008-02-20 17:18:17 | admin | create | |
|