Newbie question

Anthony Green
Mon Nov 18 09:35:00 GMT 2002

On Mon, 2002-11-18 at 06:48, Jürgen Hoffmann wrote:
> I call it using: gcj -o mm.mysql-2.0.14-bin.jar 

You're almost there...

$ gcj -shared -o mm.mysql-2.0.14-bin.jar

However, you should really call your shared library something else. 
JDBC drivers are often loaded by name, and the gcj's Class.forName()
uses a special search algorithm to find natively compiled classes at
runtime.  If the jdbc driver code is all in, then
you'll want to call your library (in decreasing order of preference)..., or, or, etc..


More information about the Java mailing list