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: gcc 4.0 and JCE


Stefan Prelle wrote:

Hi folks,

Maybe I'm just to blind to see what is missing, but I have a problem
when building a native binary that uses the JCE. When executing a
program that obtains a Mac using Mac.getInstance(..) this works when
using gij and fails with a NoSuchAlgorithmException when executing the
native binary.



GCJ and GNU Classpath don't yet support all of the same security providers as Sun's implementation. I had a brief look through the code and as far as I can see, Mac providers are not supplied at all. You'll have to use additional security providers, such as GNU Crypto, to get


I don't know why it worked for you using gij, however. For me, your example fails with the NoSuchAlgorithmException both with gij and with a native binary.

Bryce


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