This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

compliling with external jars


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]