This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GCJ compilation problems
- From: Michael Koch <konqueror at gmx dot de>
- To: "Ranga Reddy M - CTD ,Chennai." <rangareddym at ctd dot hcltech dot com>
- Cc: java at gcc dot gnu dot org, gnu at gnu dot org, gcc at gcc dot gnu dot org
- Date: Tue, 1 Jun 2004 12:54:47 +0200
- Subject: Re: GCJ compilation problems
- References: <53BBBB3235C2C74583722B212B36CA0D65EA3D@vishnu.ctd.hcltech.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Dienstag, 1. Juni 2004 12:42 schrieb Ranga Reddy M - CTD ,Chennai.:
> Hi Michael,
>
> Thanks for the reply,
>
> I already have compiled SDK in java with me.. I want to call the
> Java SDK from C++.
>
> >gcj -o test test.o test2.o javatest.o
>
> Yes , this works .
>
> But if I have a lot of classes imported(import org.apache.*;) in my
> test2.java then do I need to compile all the classes and provide
> them..Please find here the code below
You can compile whole jar files to one .o at once too.
gcj -c some.jar
Note that resources are not added automatically this way. You will
find more about this in GCJ info pages.
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAvGB3WSOgCCdjSDsRArbiAJ9P0/XTeks0LWKq3iEBT3+1nQzT+QCdHe0t
znabfs6TZLDAJ7bDsNzomas=
=N9+X
-----END PGP SIGNATURE-----