Edit me

Eclipse

Debugging the command-line application

The anchor application can be launched in debugging-mode in Eclipse by running

org.anchoranalysis.launcher.Launcher

with appropriate command-line options.

Be aware that in this context:

  • not all plugins will necessarily be available, unless their projects are explicitly (and temporarily) added as dependencies, to the anchor-launcher project.

  • Anchor expects to find a bootstrap .properties file in the current working directory, and if not present, an error message appears:

Cannot find properties file at: C:\foo\bar\anchor-launcher\target\classes\anchor.properties

To resolve this error, simply create the small bootstrap files in this location, pointing to where the Anchor Distribution is located e.g. anchor.properties becomes:

default.config.path.relative=C:/Users/someuser/Apps/anchor/config/defaultExperiment.xml
  • The config/defaultBeans.xml will also not be found, and needs to be explicitly copied either into the ${current working directory}/config/defaultBeans.xml or into $HOME/.anchor/defaultBeans.xml (which is also searched, and takes precedence).
Tags: