compliling with external jars

wolfgang pauli ookami@gmx.de
Mon Nov 7 00:04:00 GMT 2005


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /