[Java-gnome-developer] Re: Help me compile a Glade based app natively with GCJ
Brought to you by:
afcowie
From: Tom T. <tr...@re...> - 2005-11-02 17:46:51
|
>>>>> "Spyros" == Spyros Stathopoulos <fou...@gm...> writes: Spyros> gcj -classpath Spyros> /usr/share/java/gtk2.4.jar:/usr/share/gnome2.8.jar:/usr/share/java/glade2.8.jar Spyros> -lgtkjar2.4 -lgnomejar2.8 -lgladejar2.8 --main=Main -o Main Main.java Spyros> /tmp/ccYlRfbE.o(.text+0x30): In function `main': Spyros> ccADRhVT.i: undefined reference to `Main::class$' Spyros> collect2: ld returned 1 exit status Most frequently this error occurs because 'Main' is not the fully qualified name of the class containing the 'main' method. In this case it looks like it is though... but just to be sure, does Main.java have a 'package' statement in it? Tom |