This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: compliling with external jars
- From: "wolfgang pauli" <ookami at gmx dot de>
- To: "wolfgang pauli" <ookami at gmx dot de>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 7 Nov 2005 01:04:25 +0100 (MET)
- Subject: Re: compliling with external jars
- References: <21378.1131310184@www26.gmx.net>
Solved it. The error was caused by a failure while compiling the
classpath. Sorry for the spam!
> --- Ursprüngliche Nachricht ---
> Von: "wolfgang pauli" <ookami@gmx.de>
> An: java@gcc.gnu.org
> Betreff: compliling with external jars
> Datum: Sun, 6 Nov 2005 21:49:44 +0100 (MET)
>
> Dear List,
>
> I wrote a little program (hello world) that also uses a constructor
from
> a external jar. the reason for the version of hello world is that I
want
> to figure out how to compile something that included an external jar.
>
> The program goes like this:
> // -------------------
> import com.jgoodies.forms.builder.ButtonBarBuilder;
>
> public class Test {
>
>
> /**
> * @param args
> */
> public static void main(String[] args) {
> ButtonBarBuilder auc = new ButtonBarBuilder();
> System.out.println("Hello World!");
>
> }
>
> }
> // ----------------------------
> To compile it, I used these command:
>
> gcj -Wall --main=Test ../lib/forms-1.0.5.jar Test.o -o test
> or
> gcj -Wall --main=Test ../lib/forms-1.0.5.jar Test.java -o test
> or
> gcj -O -g -c ../lib/forms-1.0.5.jar
> gcj -Wall --main=Test forms-1.0.5.o Test.o -o test
>
> I always get the error:
> undefined reference to `java::awt::Container::eventTypeEnabled(int)'
>
> I really have no idea what that means. I think there is this method in
> the classpath.
>
> Thanks for any suggestions!!
>
> Wolfgang
>
> --
> Telefonieren Sie schon oder sparen Sie noch?
> NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie
>
--
Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat,
DSL-Flatrate für nur 4,99 Euro/Monat* http://www.gmx.net/de/go/dsl