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.
-
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.
-
Download and install maven.
-
Add the JDK and maven to the environment variables, see step-by-step here.
-
Download and install git for Windows.
-
Optional: download the latest Micro-Manager 2 64bits.
-
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.
-
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.gitThis should create an Accent folder in the git folder.
-
Finally build Accent. If you did not install Micro-Manager, then simply type to build only the Fiji plugin:
./build-Win.shIf 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.
- Download and install Eclipse.
- Launch Eclipse and choose the default workspace.
- In the Package Explorer, click on "Import projects...". Select "Maven" and "Existing Maven Projects". Then next.
- Navigate to the Accent folder (in the previously created git folder).
- 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.
- Eclipse should create four projects. It will take some time to download all the sources and javadoc.