compliling with external jars
wolfgang pauli
ookami@gmx.de
Sun Nov 6 20:49:00 GMT 2005
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
More information about the Java
mailing list