Steef
Steef

Reputation: 615

Configuring the build path for Eclipse projects

I have two projects in Eclipse referencing org.eclipse.swt do I need to configure the build path for both of them, or can I do this on a workspace basis ?

I can't find a way to do this for a workspace, but if it doesn't exist this means I have to configure the build path for each of my projects where I know they all use org.eclipse.swt.

Upvotes: 0

Views: 135

Answers (1)

Aaron Digulla
Aaron Digulla

Reputation: 328546

A simple solution is to create a project that has SWT on the classpath and then add this to all other projects. Make sure you export the dependencies (there is an extra tab for that); that will make them visible in all other projects as well.

Over time, you will find that this setup also allows you to add helper code in this project which can then also be shared with all other projects.

Upvotes: 1

Related Questions