This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Creating native binaries using GNU-Crypto


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hello Stefan,

On Fri, 12 Dec 2003 01:41 am, Stefan Prelle wrote:
> On Thu, 2003-12-11 at 10:25, Raif S. Naffah wrote:
> > can you provide a minimal code that causes the exception; i.e.
> > after adding the GnuCrypto Provider, and when acquiring an
> > algorithm.
>
> Now I can :-)

can you try the following:

* using the same source, and the following Makefile --adapted to suit
your environment; i.e. where you installed GNU Crypto:

- -----
GNU_CRYPTO_HOME=/usr/local/gnu-crypto

all:
	gcj -v
	gcj --encoding=UTF-8 -g -O2 \
		--classpath=$(GNU_CRYPTO_HOME)/share/javax-crypto.jar:$(GNU_CRYPTO_HOME)/share/gnu-crypto.jar \
		-o GetClassTest \
		--main=GetClassTest \
		GetClassTest.java \
		$(GNU_CRYPTO_HOME)/lib/lib-javax-crypto.so \
		$(GNU_CRYPTO_HOME)/lib/lib-gnu-crypto.so
	./GetClassTest
- -----

* do:

   LD_LIBRARY_PATH=/usr/local/gnu-crypto/lib/:$LD_LIBRARY_PATH make


using the latest (GNU Crypto sources), here i get:

$ LD_LIBRARY_PATH=/usr/local/gnu-crypto/lib/:$LD_LIBRARY_PATH make
gcj -v
Reading specs from /usr/local/gcc-3.4/bin/../lib/gcc/i686-pc-linux-gnu/3.4/specs
Reading specs from /usr/local/gcc-3.4/bin/../lib/gcc/i686-pc-linux-gnu/3.4/../../../libgcj.spec
rename spec lib to liborig
Configured with: ../gcc/configure --enable-shared --enable-threads=posix --prefix=/usr/local/gcc-3.4/ --enable-languages=c,c++,java : (reconfigured)
Thread model: posix
gcc version 3.4 20031107 (experimental)
gcj --encoding=UTF-8 -g -O2 \
        --classpath=/usr/local/gnu-crypto/share/javax-crypto.jar:/usr/local/gnu-crypto/share/gnu-crypto.jar \
        -o GetClassTest \
        --main=GetClassTest \
        GetClassTest.java \
        /usr/local/gnu-crypto/lib/lib-javax-crypto.so \
        /usr/local/gnu-crypto/lib/lib-gnu-crypto.so
./GetClassTest
Mac is javax.crypto.Mac@809c960


cheers;
rsn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Que du magnifique

iD8DBQE/2Mno+e1AKnsTRiERA2UvAJ43AQ/P+Ml59NUgAS5Y/rLU2J0L1wCg9z8h
iTP3Rm1lqN3OXbdT02L0DpM=
=NYQf
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]