Grzenio
Grzenio

Reputation: 36639

Setting up an Eclipse project

I am planning to use Eclipse for a small java project, which I will develop together with a couple of mathematicians - hence it is important to set everything for them in a way that they can easily open the project, run one of the configurations, have all the files included etc. How can I do it in Eclipse?

In IntelliJ (and VS for M$ languages, and any other IDE I can think of) you just create a project file and tell the other people to double click on it :) However, in Eclipse you start from selecting the directory for the workspace, and I am struggling to link it conceptually with a "project file".

Upvotes: 4

Views: 623

Answers (3)

Selman
Selman

Reputation: 1

Also if you always want to select the workspace; choose it from Preferences->Startup : Prompt for workspace

Upvotes: 0

Zoltán Ujhelyi
Zoltán Ujhelyi

Reputation: 13858

You can do the following:

  1. Define a Team Project Set, that can be used to import projects from VCS systems. To do this, share the projects to version control, and then export the projects using the Export/Team/Team Project Set wizard. That can be imported by the corresponding Team Project Set import wizard; then all files will be added.

  2. You can define a Run configuration where you can make any important setting (e.g. memory limit size settings; default parameters, selecting project/executed file), and then share this configuration as a file. To do this, open the Common tab in the Launch configuration settings (Run/Run configurations...), and select Save as/Shared file. Then you can save this launch configuration to your project, and that can be used to execute the program (e.g. first time by right clicking it, and then it will be shown together with the run configurations. In every case, make sure that you set the path parameters in a workspace relative way - e.g. use ${workspace_loc}/../runtime-indigoviatra

This way you can define a lot of settings together.

Another way to handle this would be to provide a workspace prepopulated. For this to work you have to make sure that all your collegues use the same operating system (e.g. Linux) with the same set of plug-ins, otherwise there might be some problems.

Upvotes: 4

Tobias
Tobias

Reputation: 9380

Select any workspace and just create a new Java project. If you want to send it to others; they have to import (as existing project into workspace) it. Should work.

Upvotes: 0

Related Questions