This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Question for the AWT guys
- From: Michael Koch <konqueror at gmx dot de>
- To: java at gcc dot gnu dot org
- Date: Mon, 16 Sep 2002 17:44:40 +0200
- Subject: Question for the AWT guys
Hello list,
I tried to write a little AWT hello world app. Compiling it with gcj works
fine. The problem is that each startup of the app with gij fails with the
following error:
Exception in thread "main" java.lang.NoClassDefFoundError: AWTTest.java
at gnu.gcj.runtime.FirstThread.run()
(/home/mkoch/local/java/lib/libgcj.so.3.0.0)
at _Jv_ThreadRun(java.lang.Thread)
(/home/mkoch/local/java/lib/libgcj.so.3.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean)
(/home/mkoch/local/java/lib/libgcj.so.3.0.0)
at main (/home/mkoch/src/gcc/libjava/gij.cc:152)
at __libc_start_main (/lib/libc-2.2.5.so)
After some digging into the things. I found out that no symbol GTKToolkit is
in the lib libgcj.so, but there is a file called GtkToolkit.class in
libgcj-3.3.jar.
When I did "make libgcjx.la" the compile failed shortly after starting in
natClip.cc with:
/home/mkoch/src/gcc/libjava/gnu/gcj/xlib/natClip.cc:15:18: vector: No such
file or directory
/home/mkoch/src/gcc/libjava/gnu/gcj/xlib/natClip.cc:26: error: syntax error
before `;' token
/home/mkoch/src/gcc/libjava/gnu/gcj/xlib/natClip.cc: In member function `void
gnu::gcj::xlib::Clip::init(AWTRectArray*)':
/home/mkoch/src/gcc/libjava/gnu/gcj/xlib/natClip.cc:33: error: `XRectVector'
undeclared (first use this function)
/home/mkoch/src/gcc/libjava/gnu/gcj/xlib/natClip.cc:33: error: (Each
undeclared
identifier is reported only once for each function it appears in.)
/home/mkoch/src/gcc/libjava/gnu/gcj/xlib/natClip.cc:33: error: `xrectvector'
undeclared (first use this function)
/home/mkoch/src/gcc/libjava/gnu/gcj/xlib/natClip.cc:33: error: parse error
before `(' token
make: *** [gnu/gcj/xlib/natClip.lo] Fehler 1
The problem is that the compiler needs the libstdc++ include "vector" but the
compiler gets a -nostdinc++ option. Somebody needs to fix this, I think.
Now the question: How do get a simple AWT app working with libgcj from CVS
trunk branch ? is it possible or what needs to be done to make this work ?
Any hints ? I'm willing to do some work there.
Michael