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]

Re: GCJ Swing/AWT working on OS X -- article



On Jul 21, 2004, at 5:45 PM, Michael Koch wrote:


Am Mittwoch, 21. Juli 2004 23:38 schrieb John Gabriele:
Thanks to Andreas Tobler I was able to follow his lead
and get GCJ with Swing/AWT-enabled running on Mac OS X.

As promised, I wrote an article describing the steps we
went through to get it working.

http://www.bestweb.net/~john3g/gcj_osx/gcj_on_osx_gui.html

If anyone spots any errors or can offer any corrections,
I'd be much obliged. :)

I have only x86 and no MacOSX but the following line seems to be redundant in your description as this should be done internally to gij/gcj:

export CLASSPATH=/usr/local/gcc_cvs/share/java/libgcj-3.5.0.jar


Michael



Hmm... it doesn't seem to be redundant on Mac OS X:


john$ gcj -o bar --main=TestAWT TestAWT.java
/usr/bin/ld: warning multiple definitions of symbol _sqrt
/usr/local/gcc_cvs/lib/gcc/powerpc-apple-darwin7.4.0/3.5.0/../../../ libgcj.dylib(libgcj.6.0.0.dylib-master.o) definition of _sqrt
/usr/lib/libm.dylib(sqrt970.o) definition of _sqrt


john$ ./bar
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
<<No stacktrace available>>
Caused by: java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit not found in [file:./, core:/]
<<No stacktrace available>>


john$ export CLASSPATH=/usr/local/gcc_cvs/share/java/libgcj-3.5.0.jar

john$ ./bar
false
true
{i.e. it starts up and runs as it should.}

---J


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