win-installation.md

September 6, 2020 ยท View on GitHub

Installation on Windows

This step-by-step guides aims at building the Fiji and Micro-Manager plugins.

  1. Download and install JDK 1.8 from the Oracle website. You will need an account, you can either create one or use the magic Bug Me Not.

  2. Download and install maven.

  3. Add the JDK and maven to the environment variables, see step-by-step here.

  4. Download and install git for Windows.

  5. Optional: download the latest Micro-Manager 2 64bits.

  6. Verify that maven works by opening the newly installed git console and typing:

mvn --version

The prompt should point to the JDK and maven installation folders.

  1. Using the git console, create a git folder in your user folder and clone the Accent repository:

    mkdir ~/git
    cd ~/git
    git clone https://github.com/ries-lab/Accent.git
    

    This should create an Accent folder in the git folder.

  2. Finally build Accent. If you did not install Micro-Manager, then simply type to build only the Fiji plugin:

    ./build-Win.sh
    

    If you installed Micro-Manager and want to build the Micro-Manager plugin, copy the path to your Micro-Manager installation folder and type:

    ./build-Win.sh "C:/Path/To/Micro-Manager"
    

    The plugins are built in the accent-fiji/target and accent-mm2/target folders. Note that the Micro-Manager plugin is directly copied to the Micro-Manager installation folder, while the Fiji plugin needs to be copied manually.

Setting-up Eclipse

To modify the source code, we are better off using an IDE such as Eclipse.

  1. Download and install Eclipse.
  2. Launch Eclipse and choose the default workspace.
  3. In the Package Explorer, click on "Import projects...". Select "Maven" and "Existing Maven Projects". Then next.
  4. Navigate to the Accent folder (in the previously created git folder).
  5. Eclipse should find a main pom.xml file and three sub-pom.xml files in accent-common, accent-fiji and accent-mm2. Make sure they are all selected. In the bottom of the window, in "Add project(s) to working set", select "Java Main Sources". Finish.
  6. Eclipse should create four projects. It will take some time to download all the sources and javadoc.