Re: JNI Problems urgent.

2005-04-24 Thread Pól Ó Riain
Would anyone please be able to help me ? I realise how annoying i must sound its just this is extremely urgent. I need it by tomorrow (as in i need it finished tonight). On Sat, 2005-04-23 at 20:16 +0100, Pól Ó Riain wrote: > I've been trying the options u gave me but gcc keeps giving me errors.

Re: JNI Problems urgent.

2005-04-23 Thread Pól Ó Riain
I've been trying the options u gave me but gcc keeps giving me errors. $ gcc -c -g -c -fPIC -I/usr/include -I/usr/j2sdk1.4.2_08/include -I/usr/j2sdk1.4.2_08/include/linux nativeCrypto.c -o nativeCrypto.o gcc -shared -Wl,-soname,libnativeCrypto.so -o libnativeCrypto.so nativeCrypto.o -g -L/usr/li

Re: JNI Problems urgent.

2005-04-23 Thread Pól Ó Riain
>>make > gcc -c -g -c -fPIC -I/usr/include -I/usr/j2sdk1.4.2_08/include > -I/usr/j2sdk1.4.2_ > 08/include/linux jni.c -o jni.o > gcc -shared -Wl,-soname,libnativebf.so -o libnativebf.so jni.o -g -L/usr/lib - > lcrypto It tells me -c -g etc are invalid options On Sun, 2005-04-24 at 00:41 +0900,

Re: JNI Problems urgent.

2005-04-23 Thread Pól Ó Riain
Oh wait nevermind i see. On Sun, 2005-04-24 at 00:41 +0900, Takaaki Ishii wrote: > >Ok well thats not the problem so, its definately in /usr/lib/. I am > >having this problem not only on OpenSSL crypto libraries but a very > >similiar problem at work with some c crypto libraries we are using. Its

Re: JNI Problems urgent.

2005-04-23 Thread Pól Ó Riain
Did you run the C or the Java ? I can compile and run the C code myself too, and if i take out the C code and just put in a printf method it works but it WON'T encrypt for me :( Did you run the Java interface ? or just the C ? On Sun, 2005-04-24 at 00:41 +0900, Takaaki Ishii wrote: > >Ok well t

Re: JNI Problems urgent.

2005-04-23 Thread Takaaki Ishii
>Ok well thats not the problem so, its definately in /usr/lib/. I am >having this problem not only on OpenSSL crypto libraries but a very >similiar problem at work with some c crypto libraries we are using. Its >more likely my jni interface thats misbehaving then. (although i did >check it several

Re: JNI Problems urgent.

2005-04-23 Thread Pól Ó Riain
Ok well thats not the problem so, its definately in /usr/lib/. I am having this problem not only on OpenSSL crypto libraries but a very similiar problem at work with some c crypto libraries we are using. Its more likely my jni interface thats misbehaving then. (although i did check it several times

Re: JNI Problems urgent.

2005-04-23 Thread Takaaki Ishii
>And where do i set that ? > >> hi, >> BF_set_key is marked as defined in libcrypto.so or libeay32.dll(for windows) >> check if this openssl library is in your library path. It depends on Operating-System you are using. Please set PATH (Windows) or LD_LIBRARY_PATH (at least Linux, Solaris) envir

Re: JNI Problems urgent.

2005-04-23 Thread Pól Ó Riain
And where do i set that ? > hi, > BF_set_key is marked as defined in libcrypto.so or libeay32.dll(for windows) > check if this openssl library is in your library path. > > sravan > > > Pól Ó Riain wrote: > > Hey, yes it does exist. Is there anything wrong with the code ? > > > > > > > If

Re: JNI Problems urgent.

2005-04-21 Thread sravan
hi, BF_set_key is marked as defined in libcrypto.so or libeay32.dll(for windows) check if this openssl library is in your library path. sravan Pól Ó Riain wrote: Hey, yes it does exist. Is there anything wrong with the code ? If BF_set_key function is statically linked, you ca

Re: JNI Problems urgent.

2005-04-21 Thread Pól Ó Riain
Hey, yes it does exist. Is there anything wrong with the code ? > If BF_set_key function is statically linked, you can confirm > those symbols in shared object, like: > > $ nm libnativebf.so > U BF_cfb64_encrypt > U BF_set_key <- must exist. > 09a0 T Java_nat

Re: JNI Problems urgent.

2005-04-20 Thread Takaaki Ishii
Hi, >Hey guys i'm having trouble with a jni interface to OpenSSL. >/home/mcx/Programming/Eclipse/project/lib/libnativebf.so: undefined symbol: > BF_set_key If BF_set_key function is statically linked, you can confirm those symbols in shared object, like: $ nm libnativebf.so U BF_cfb

JNI Problems urgent.

2005-04-20 Thread Pól Ó Riain
Hey guys i'm having trouble with a jni interface to OpenSSL. This is my Java: public class nativeBF { public native void nativeRun(); public void nCall(){ nativeRun(); } static { //Load the