I'm running SCO 5.0.7 and I'm trying to get the JNI to C demo to work (from /usr/java/demo/native/jni_c_demo).
Everything compiles fine, but when I first went to execute the program, I got the following error:
UDK executable cannot load OpenServer shared object (referencing the created libfib.so)
I did some digging around before posting and found this thread here:
I ran /udk/usr/ccs/bin/elfmark -t udk libfib.so, and that seemed to resolve that particular problem. Next however, came a familiar error:
java relocation error: symbol not found: _runtime_env: referenced in libfib.so.
When I was first trying to get JNI working on SCO, I had written my own code, compiled it with gcc, and gotten that same error message. It was when I was looking into that original error that I found out that you apparently can't use gcc to compile code for using JNI - you have to use UDK.
SO what am I doing wrong here? Is there some additional configuration required such that UDK actually becomes usable in this capacity?
The cc command resides at /usr/ccs/bin/cc on my SCO installation. Is that problematic? From looking at the source of mk in the demo code, it looks like that indicates I'm not using the correct cc, however, I don't have cc at /udk/usr/ccs/bin. If that's the problem, what do I need to install to fix it? From looking at the software manager, I've got the following things installed:
Java 2 Software Development Kit (1.4.2Cc)
OpenServer Release 5.0.7 Maintenance Pack 3 (1.0.0Hc)
UDK Compatibility Libraries (1.0.0Hc)
If I need to include any other versions, let me know. Any help is greatly appreciated.
Everything compiles fine, but when I first went to execute the program, I got the following error:
UDK executable cannot load OpenServer shared object (referencing the created libfib.so)
I did some digging around before posting and found this thread here:
I ran /udk/usr/ccs/bin/elfmark -t udk libfib.so, and that seemed to resolve that particular problem. Next however, came a familiar error:
java relocation error: symbol not found: _runtime_env: referenced in libfib.so.
When I was first trying to get JNI working on SCO, I had written my own code, compiled it with gcc, and gotten that same error message. It was when I was looking into that original error that I found out that you apparently can't use gcc to compile code for using JNI - you have to use UDK.
SO what am I doing wrong here? Is there some additional configuration required such that UDK actually becomes usable in this capacity?
The cc command resides at /usr/ccs/bin/cc on my SCO installation. Is that problematic? From looking at the source of mk in the demo code, it looks like that indicates I'm not using the correct cc, however, I don't have cc at /udk/usr/ccs/bin. If that's the problem, what do I need to install to fix it? From looking at the software manager, I've got the following things installed:
Java 2 Software Development Kit (1.4.2Cc)
OpenServer Release 5.0.7 Maintenance Pack 3 (1.0.0Hc)
UDK Compatibility Libraries (1.0.0Hc)
If I need to include any other versions, let me know. Any help is greatly appreciated.