This is probably a really soppy question but I'm very very very stuck...


I'm trying to run a python script from a java GUI.  I have had to use jnios-1.7 to fix a problem I had with os.py, but now I'm getting:

I tried to compile jnios-1.7/*.cpp, but it is looking for io.h, does io.h even exist on UNIX??

Is there a precompiled unix version of posix.so that I can download??



I'm going round in circles here, ANY tips welcome!!!

Chars!
Shari


Compiling jnios-1.7/*.cpp
sharona@zmdhm011:/u_area/9/sharona/jython/jnios-1.7 > gcc -c -I/usr/include -I/opt/jdk/include -I /opt/jdk/include/linux -I. posix.cpp

In file included from posixmodule.h:49,
                 from posix.cpp:19:
config.h:35: io.h: No such file or directory
In file included from posix.cpp:19:
posixmodule.h:200: sys/utime.h: No such file or directory
sharona@zmdhm011:/u_area/9/sharona/jython/jnios-1.7 >

Calling a python script from a java file
sharona@zmd:/u_area/9/sharona/jython > java -cp "jnios-1.7/jnios.jar:jython.jar:." PrepareTest1
{python.path=//home//sharona//Lib;//home//sharona//jnios-1.7}
pInt.get : null
pInt.get : null
Traceback (innermost last):
  File ".//Prepare.py", line 11, in ?
  File "/u_area/9/sharona/jython
/./Lib/tempfile.py", line 76, in ?
java.lang.UnsatisfiedLinkError: no posix in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1291)
        at java.lang.Runtime.loadLibrary0(Runtime.java:473)
        at java.lang.System.loadLibrary(System.java:777)
        at jnios.posix.<clinit>(posix.java:723)
        at jnios.os.initModule(os.java:27)
        at org.python.core.PyJavaClass.initialize(PyJavaClass.java)
        at org.python.core.PyJavaClass.lookupGivingClass(PyJavaClass.java)
        at org.python.core.PyClass.lookup(PyClass.java)
        at org.python.core.PyJavaClass.__findattr__(PyJavaClass.java)
        at org.python.core.PyObject.__getattr__(PyObject.java)
        at tempfile$py.f$0(tempfile.py:76)
        at tempfile$py.call_function(tempfile.py)
        at org.python.core.PyTableCode.call(PyTableCode.java)
        at org.python.core.PyCode.call(PyCode.java)
        at org.python.core.imp.createFromCode(imp.java)
        at org.python.core.imp.createFromPyClass(imp.java)
        at org.python.core.imp.loadFromPath(imp.java)
        at org.python.core.imp.loadFromPath(imp.java)
        at org.python.core.imp.load(imp.java)
        at org.python.core.imp.import_next(imp.java)
        at org.python.core.imp.import_name(imp.java)
        at org.python.core.imp.importName(imp.java)
        at org.python.core.ImportFunction.load(__builtin__.java)
        at org.python.core.ImportFunction.__call__(__builtin__.java)
        at org.python.core.PyObject.__call__(PyObject.java)
        at org.python.core.__builtin__.__import__(__builtin__.java)
        at org.python.core.imp.importOne(imp.java)
        at org.python.pycode._pyx0.f$0(Prepare.py:11)
        at org.python.pycode._pyx0.call_function(Prepare.py)
        at org.python.core.PyTableCode.call(PyTableCode.java)
        at org.python.core.PyCode.call(PyCode.java)
        at org.python.core.Py.runCode(Py.java)
        at org.python.core.__builtin__.execfile_flags(__builtin__.java)
        at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java)
        at PrepareTest1.<init>(PrepareTest1.java:21)
        at PrepareTest1.main(PrepareTest1.java:32)

java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: no posix in java.library.path