Versions Compared

Key

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

...

For instance, after building HPS Java, the distribution jar for the copy of HPS Java I am using can be found here.

Code Block
languagebash
themeRDark
cd hps-java-trunk; ls distribution/target/hps-distribution-3.6-SNAPSHOT-bin.jar

...

Assuming you have followed the instructions at Installing HPS Java, you can run the standalone jar file two ways.

Running the Default Main Method

Using the -jar switch from the command line will run the main from the class JobManager, which is listened in the manifest inside the jar.

...

Without any arguments it will print the command line options and then exit.

Running a Specified Class's Main Method

You can also run the main method from any class in the jar.

...

Some XML steering files have variables that need to be resolved with command line arguments.

Resolving Steering File Variables

For instance, suppose the XML file has this variable definition.

...

Code Block
languagebash
java -DdisableSvtAlignmentConstants=true [...]

When set in this way, these values are accessible as Java system properties at runtime.

Java Arguments

The JVM accepts a number of command line arguments that alter its behavior.

In particular, you will likely want to increase the default heap space, as the default is too low for running HPS Java.

Code Block
languagebash
java -Xmx2g [...]

That will change the heap space to 2 gigabytes.

Also, you may want to run the JVM in server mode.

Code Block
languagebash
java -server [...]

 The server VM has been optimized for peak operating speed rather than responsiveness.

Job Manager

EvioToLcio

Run Scripts

...