[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: Creating project on different platforms

Mikael wrote:

Hi,

Thanks!

Do you have an example of how to the .project and .classpath files will look like?

cheers,

//mikael

You need to do more than edit the .project and .classpath files. The variables need to be defined in the workspace. The best way to do this is from Eclipse itself. You create linked resources from the New->Folder wizard. Select the Advanced button and check Link to folder in file system. Use the Variable button to define a variable that points the the root folder you need to share. The external location will now appear as a folder in your project. You can use it as a source directory, and output directory, or use it to add .jar files to the classpath. Check out the Creating linked rersources page in the Workbench Users Guide.


Classpath variables are the other option. These are limitted in that they only allow you to add external jar files to the class path. You create them from the Java Build Path dialog on the Libraries tab. Check out the Classpath Variables help page in the Java Development User Guide.

Once your project is setup to use the variables. The other developers on your team each need to define the variable location in their workspace.