Skip to Content

SWT problems

Posted in

Hi,

I tried to compile a feature (and its plugins) on Mac OS X. The classpath is created from the target platform. However, the SWT bundle is not correctly resolved. Instead of

../plugins/org.eclipse.swt.cocoa.macosx_3.5.2.v3557f.jar

the "stub"

../plugins/org.eclipse.swt_3.5.2.v3557f.jar

is added to the classpath. Since the class to be compiled requires SWT, the build fails.

Is this a general problem or OS X specific?

Cheers,

Jens

SWT problems

Hi Jens,

normally the class path contains the org.eclipse.swt_as well as the associated fragment... Ant4eclipse tries to resolve the target platform in respect to the platform that is used to run the build. That means (for example) that you need a 64bit target platform if you run the build on a 64 bit machine.

If you still still have problems, please re-run the build with "-verbose". You can also contact me directly via email, if you don't want to attach the output in the forum.

Regards,
Gerd