This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: compiling Java with gcj
- From: llewelly at xmission dot com
- To: "Wesley Hobbie" <wslyhbb at yahoo dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: 29 Mar 2004 17:26:09 -0700
- Subject: Re: compiling Java with gcj
- References: <LOEGJPKFIEKDFJIDIHIJGEMECDAA.wslyhbb@yahoo.com>
"Wesley Hobbie" <wslyhbb@yahoo.com> writes:
> I have successfully compiled some .dll files using gcj, but now I need to
> compile the main program and have all the .dll linked to it. I am using
> Cygwin under Windows XP, and I perform the following:
> gcj --main=Backup -o Backup.exe Backup.java -L/home/wslyhbb/JavaByteCode
> The JavaByteCode directory contains a .dll called dbutils.dll (which
I think you need to add '-ldbutils' to your commnad line. '-L' just
specifies a directory to look in when searching for libraries
specified by '-l'.
> contains my MySQLUtilities.o file compiled from my MySQLUtilities.java file)
> I get the following error: Superclass `MySQLUtilities' of class
> `org.library.databaseUtilities.Backup' not found.
> public class Backup extends MySQLUtilities
[snip]