Dienstag, 9. Mai 2006

HOWTO_ Create an SWT Carbon Application with Eclipse under Mac OS X

It took quite some hours until I was able to get a simple "Hello World" SWT Application running under Mac OS X. Finally, it was all about copying and including the right libraries.

System

Copy the following files out of Eclipse's plugins directory to /System/Library/Frameworks/JavaVM.framework/Versions/1.4/Libraries or /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Libraries, depending on which Java version your are using.
  • libswt-carbon-3139.jnilib
  • libswt-pi-carbon-3139.jnilib
  • libswt-webkit-carbon-3139.jnilib

Eclipse

Create a new Java project in Eclipse and add the following external Jars to the project's build path. You will also find them in the plugin folder of your Eclipse installation.
  • org.eclipse.swt_3.1.0.jar
  • org.eclipse.swt.carbon.macosx.ppc_3.1.1.jar
  • org.eclipse.jface_3.1.1.jar
  • org.eclipse.jface.text_3.1.1.jar
  • org.eclipse.core.runtime_3.1.1.jar
The versions of the libraries might differ to the Eclipse version you are using. But as all of them are being shipped with Eclipse, it is all a thing of having the right libraries in the right directory :).

Reflog

Informationstechnische Howtos, Hinweise und Merkwürdiges

Batchlib v1.0 2008-03-29

Aktuelle Beiträge

HOWTO_ O2 DSL Surf &...
Der O2 DSL Surf & Phone-Router ist für die alleinige...
cypressor - 12. Feb, 19:57
Uptweak Windows XP Home...
There are a lot of annoying limitations in Windows...
cypressor - 9. Okt, 19:30
BATCHLIB_ Batchlib package...
Download Batchlib package v1.0 (5 KB zip file) What...
cypressor - 29. Mär, 19:10
BATCHLIB_ Batchlib library...
The batchlib library string.cmd is part of the batchlib...
cypressor - 29. Mär, 18:10

Homepage Ticker

Links

Status

Online seit 6589 Tagen
Zuletzt aktualisiert: 28. Jun, 11:32
RSS XML 1.0 Button-Get-Firefox

batch
batchlib
howto
tech
video
Profil
Abmelden
Weblog abonnieren