RE: native methods in inner classes (long)

2006-09-19 Thread Jeroen Frijters
Raif S. Naffah wrote: > * the header file generated by the RI-1.5 emits a signature > for the native method of an inner class that looks like so: > >JNIEXPORT void JNICALL Java_OC_IC_natInit This looks like a bug in javah. [1] claims they fixed it. > my questions are: > > 1. do VMs handle

Re: native methods in inner classes (long)

2006-09-19 Thread Christian Thalinger
On Tue, 2006-09-19 at 23:08 +0200, Christian Thalinger wrote: > On Wed, 2006-09-20 at 06:02 +1000, Raif S. Naffah wrote: > > * with both cacao and jamvm, even with the second signature, running the > > code > > causes an UnsatisfiedLinkError to be raised. > > That's completely right. gcj can ha

Re: native methods in inner classes (long)

2006-09-19 Thread Christian Thalinger
On Wed, 2006-09-20 at 06:02 +1000, Raif S. Naffah wrote: > * with both cacao and jamvm, even with the second signature, running the code > causes an UnsatisfiedLinkError to be raised. That's completely right. gcj can handle it correctly, AFAICT. I'm currently fixing this. > > my questions are

Re: Classpath and gnu-crypto

2006-09-19 Thread Casey Marshall
What version of GCJ are you using? In recent releases of GCJ (or maybe the upcoming release -- I haven't been tracking this) GNU Crypto is a part of libgcj. Like Raif wrote in his reply, replacing "gnu.crypto" with "gnu.java.security" in your code will work in a newer GCJ release. Compiling Classp

Re: Classpath and gnu-crypto

2006-09-19 Thread Daniel Franganillo
Raif S. Naffah escribió: hello Daniel, On Wednesday 20 September 2006 03:35, Daniel Franganillo wrote: import gnu.crypto.key.rsa.RSAKeyPairGenerator; import gnu.crypto.key.rsa.GnuRSAKey; if you're using a recent GNU Classpath bundle, try replacing the last two import statements with: impor

Re: Classpath and gnu-crypto

2006-09-19 Thread Raif S. Naffah
hello Daniel, On Wednesday 20 September 2006 03:35, Daniel Franganillo wrote: > ... > 1 - Class: > import java.security.KeyPairGenerator; > import java.security.NoSuchAlgorithmException; > import java.security.KeyPair; > import java.security.Security; > import gnu.crypto.key.rsa.RSAKeyPairGenerato

native methods in inner classes (long)

2006-09-19 Thread Raif S. Naffah
hello all, (this concerns VM implementers so i'm posting it here since it may relate to VMs other than the two i use for my testing) since Jeroen F.'s comments on my recent BigInteger/GMP patch, i've been playing with having an inner class in BigInteger which has all the native methods. the p

Classpath and gnu-crypto

2006-09-19 Thread Daniel Franganillo
Hi, first of all, hello everyone. Im pretty new in gnu-classpath'ing but i found it pretty interesting and an awesome project, so, its possible to compile (natively) an application wich uses gnu-crypto? Whenever i try to compile a simple test i get: RSA2.java:(.text+0x25): undefined reference