Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 344049

Summary: Add FAQ for packaging SWT jars for multiple platforms
Product: [Eclipse Project] Platform Reporter: Silenio Quarti <Silenio_Quarti>
Component: SWTAssignee: Bogdan Gheorghe <gheorghe>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, mchr3k, remy.suen
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Silenio Quarti CLA 2011-04-27 17:32:49 EDT
From mailing list:

"I would like to propose a new Q&A to be added to the SWT FAQ (http://www.eclipse.org/swt/faq.php).

In this stackoverflow discussion (http://stackoverflow.com/questions/2706222/create-cross-platform-java-swt-application/5784073#5784073) I present an approach which produces a single jar packaging up the SWT jars for a number of platforms and which loads the correct one at runtime. This allows the resulting jar to use the SWT native widgets across multiple platforms from a single jar.

Let me know if you have any questions."
Comment 1 Carolyn MacLeod CLA 2011-04-28 09:53:54 EDT
See also the mailing list thread at:
http://dev.eclipse.org/mhonarc/lists/platform-swt-dev/msg07255.html
Comment 2 Bogdan Gheorghe CLA 2011-05-06 22:15:56 EDT
I added an item to our FAQ that points to the post. Thanks!