This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: libgcj.security + classpath.security warning
- From: João Garcia <jgarcia at uk2 dot net>
- To: java at gcc dot gnu dot org, Øyvind Harboe<oyvind dot harboe at zylin dot com>, Mohan Embar <gnustuff at thisiscool dot com>
- Date: Mon, 19 Jan 2004 13:11:47 +0000
- Subject: Re: libgcj.security + classpath.security warning
>I'm refining my unicodesmtp mail program(one of the examples in Mohans
>latest wingcc) to support SMTP authentication, and I've encountered one or
>two bumps on the road.
>
>What does the warning below mean?
>
>
>--
>WARNING: could not properly read security provider files:
> file:///datal/gcc/build/wingcc/lib/security/libgcj.security
> file:///datal/gcc/build/wingcc/lib/security/classpath.security
> Falling back to standard GNU security provider
>--
It means that someone likes to be warned when GNU security provider is
used by default.
There should be an elegant way to switch off this warning.
I guess that the compiler is also not placed at /datal/gcc/build/wingcc
(anyway... it should not have to be)...
But there is a not-so-elegant way to avoid that warning:
Provider spv=new gnu.java.security.provider.Gnu();
And, from now on, explicitly use spv...
Here is a simple example:
MessageDigest md = MessageDigest.getInstance("MD5", spv);
As for the other (and most interesting) bump, I think someone will
comment on it soon (at least I hope so because I am also curious).
João