Skip to content

Latest commit

 

History

History

eclipse

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Installation and set-up using eclipse

This guide has been written using eclipse 4.7.0 (Oxygen).

Installation options

1. Directly clone in eclipse and create a new project

See instructions below.

2. Manually clone the repository

If you want to check out the repository locally, you can get it directly from here (https://github.com/CellSimulationLabs/bsim) using git through the terminal, e.g., with ssh git clone git@github.com:CellSimulationLabs/bsim.git or https git clone https://github.com/CellSimulationLabs/bsim.git and then set up a project in eclipse, using the directory you cloned the repository into as the project root.

Clone inside eclipse

  1. From the welcome screen, click checkout projects from git:

Eclipse welcome screen

  1. Select the clone URI option (unless you have locally cloned the repo already, of course; in that case you can skip to creating a java project from the repo):

Repo source

  1. Enter the URI for the repo:

Repo details

  1. Select the master branch:

Branch

  1. Configure the directory into which you want to clone the files. Here, I am cloning it directly into the eclipse workspace:

Clone

  1. Import the project using the new project wizard:

New project

  1. The type of the project should be new java project:

New java

  1. On the next screen, set the project name to the name of the repo folder, if the repo has been cloned into the workspace. Otherwise you will have to navigate to the directory you cloned the repo to. In the case where the repo was cloned into the eclipse workspace, all the default settings here ought to be fine:

Project settings

  1. On the next screen, configure the project build settings. You need to remove src and src/bsim from the project sources in the Source tab. Then, you need to add src. Finally, change the build directory to bsim/out. The layout should look like this:

Source layout

  1. Remove extraneous libraries (the stuff in legacy dir that is automatically added by eclipse). The libraries tab ought to look like this:

Lib layout

  1. Finally, after clicking finish, the project should have been created. It ought to be in your workspace:

Project

  1. If you right click the project, and open the properties, you should see the following set-up for the build path:

Properties

  1. OK. Everything should be set up to go. To test that things are working correctly, navigate to bsim -> examples -> BSimSimplest, right click BSimSimplest, select run as -> java application and you should be greeted by a window with a yellow bacterium swimming around:

BSim preview