1753485 Members
4579 Online
108794 Solutions
New Discussion

gcc on hp-ux(jni)

 
sha_1
Occasional Contributor

gcc on hp-ux(jni)

hello everybody

i down-loaded gcc2.95.2 and binutils2.9.1 for hp-ux11.0.
but i still can not use jni.
please tell me the parametes of the compile and link.
it is my screen showing.

HPserver 85: make
/opt/TWWfsw/gcc29/bin/gcc -I/opt/java/include -I/opt/java/include/hp-ux -shared -c cImpl.c
/usr/local/bin/ar r libcImpl.sl cImpl.o
/usr/local/bin/ranlib libcImpl.sl
HPserver 86: !java
java TestJavaCallingNative
error: java.lang.UnsatisfiedLinkError: /home/sha/webnavi/test/libcImpl.sl: Exec format error
HPserver 87:

thank you very much.