On Tue, Jul 7, 2009 at 1:23 PM, Jerry James<loganjerry(a)gmail.com> wrote:
When I build an RPM for a Java application on F-11, the
aot-compile-rpm step is issuing some warnings I don't understand.
They look like this:
WARNING: Error loading security provider
org.bouncycastle.jce.provider.BouncyCastleProvider:
java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider not found in
gnu.gcj.runtime.SystemClassLoader{urls=[file:./],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
The application in question does not use bouncycastle, directly or
indirectly. On the other hand, I do have bouncycastle installed. Is
something misconfigured? Should bouncycastle be a BuildRequires for
gcj-using RPMs?
Ah, I found the reference. In
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/lib/security/java.security is
this line:
security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider
That class does exist in /usr/share/java/bcprov.jar, but nothing is
adding that jar to CLASSPATH if it exists. How is this supposed to
work?
--
Jerry James
http://www.jamezone.org/