#944 OS X Leopard: setting up swt

mike Fri 29 Jan 2010

On my OS X machine, I have fan unzipped into /apps/fantom-1.0.49, and I've added it to my bash path, and its working fine.

I want to play with Flux, so I'm following the directions on the Fan Setup page to get SWT set up. I ran fan -version and it told me my platform was macosx-x86. I downloaded swt-3.5.1-cocoa-macosx.zip, and put the swt.jar in my platform's ext directory:

$ ls /apps/fantom-1.0.49/lib/ext/macosx-x86/swt.jar
/apps/fantom-1.0.49/lib/ext/macosx-x86/swt.jar

I'm still getting a class not found error, so I guess I have something misconfigured:

$ flux
ERROR: cannot load SWT library - see `http://fantom.org/doc/docTools/Setup.html#swt`
sys::Err: java.lang.NoClassDefFoundError: org/eclipse/swt/events/KeyListener

Any ideas?

brian Fri 29 Jan 2010

Sorry - my fault, the docs are wrong. I will fix.

The core distro ships with macosx-x86_64 and your macosx-x86 directory should be a peer to that:

/apps/fantom-1.0.49/lib/java/ext/macosx-x86/swt.jar 

The "java" part is missing in the docs. Try that (I haven't tested this design on a 32-bit OSX VM)

mike Fri 29 Jan 2010

that was it, thanks

Login or Signup to reply.