Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can now run lcsim from the command-line using the java command.

No Format
java -jar ./target/lib/lcsim-[VERSION].jar [XML]

The VERSION is replaced by your lcsim build version. And XML is a file in the lcsim recon XML format.

No Format
java -jar ./target/lib/lcsim-1.11-SNAPSHOT.jar ./myJob.xml

...

The JobManager is able to convert from xml to these simple setters using Javabeans. All Java primitive types are accepted, as are 1d arrays of these types. The method must have a single argument only.

Running a Specific LCSim Release

When an LCSim release is made, a zip file is created containing the LCSim jar and all its dependencies. Running a specific version of LCSim from the command line is as simple as downloading this zip file, unzipping it, and using the java command to run the jar with your XML input.

Retrieve the dependencies jar for the version you want to run.

No Format

wget http://www.lcsim.org/maven2/org/lcsim/lcsim/1.4/lcsim-1.4-deps.zip

You can also paste this URL into your browser, and a prompt should show asking whether to download it. (Specifics depend on your browser.)

Now, unzip the dependencies jar. All the jars will show up in a directory called lib/ in your current directory.

No Format

unzip lcsim-1.4-deps.zip

This uses the command line zip utility, but a zip program with a GUI such as WinZip or WinRar would work fine, too.

We're ready to run this version of lcsim. This step requires java 1.5 or greater to be installed and accessible from your command terminal.

No Format

java -jar ./lib/lcsim-1.4 ./myJob.xml

Each release is also tagged in the cvs, like lcsim-1_4, so checking it out and rebuilding yourself is another possibility. (Not covered here.)