Platformindependecy problems

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Platformindependecy problems

Postby hub » Thu Oct 07, 2010 3:43 am


Me and my friend are developing developing together a simple SWT application. Im running windows xp and he is on a Mac.
The problem is that there is different classes for OS that the project are using.
The .classpath file contains the following lines:
Code: Select all
<classpathentry kind="lib" path="C:/Documents and Settings/Administrator/Desktop/eclipse/plugins/org.eclipse.swt.win32.win32.x86_3.6.1.v3655c.jar" sourcepath="C:/Documents and Settings/Administrator/Desktop/eclipse/plugins/org.eclipse.swt.win32.win32.x86.source_3.6.1.v3655c.jar"/>
<classpathentry kind="lib" path="/Applications/eclipse/plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.6.1.v3655c.jar"/>

Since Im on a windows machine i dont have the cocoa jar, and he dont have the win32 jar.
How do we solve this?

We are using subverision to sync our project.
Posts: 1
Joined: Thu Oct 07, 2010 3:33 am

Re: Platformindependecy problems

Postby Eric Clayberg » Thu Oct 07, 2010 4:30 am

You could solve this in any number of ways...use classpath variables, use classpath containers, maintain separate .classpath files, create an RCP project, etc.

I would recommend posting general SWT questions to the Eclipse SWT newsgroup

We would like to keep this forum focused on SWT Designer itself. Thank you.
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Return to SWT Designer

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest