Building ScreenSlicer

Daniel Hollingsworth edited this page Jan 15, 2015 · 5 revisions

Background

Stable binaries which follow semantic versioning are available on the releases page.

The master branch is normally usable but may introduce untested features and APIs which will be removed at the next release. But each release is tagged in the source tree if you want to build a stable version.

Currently there are no build scripts and no dependency management tool is used. Binary dependencies are in <project root>/common/lib.

Set-up

The recommended way to build ScreenSlicer is to clone:

The cloned source tree contains Eclipse Java projects. Open Eclipse and import those existing projects into your Eclipse workspace. Be sure you have a Java 8 JRE installed (including JavaFX 8 which is part of the JRE but some Linux distribution have separated them in their repositories).

Launch

Next, in Eclipse launch a new Java application and choose the main class in the 'core' project. When it launches, a screenslicer.config file is generated in the working directory (the 'core' directory). ScreenSlicer is now able to be used via the Java API, com.screenslicer.webapp.ScreenSlicer

If you want to use the JSON API, copy the generated 'core' screenslicer.config file to the 'api' directory. Then, without terminating the core application, launch a new Java application and choose the main class in the 'api' project. Your server is now started and ready to process requests.

Build

In Eclipse, choose to export a runnable JAR for each of the two launch configurations above.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.