Versions Compared

Key

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

Table of Contents

Before reading these instructions, you will want to follow Installing HPS Java in order to build or obtain an HPS Java distribution jar.

Creating the Distribution Jar

It is assumed in the instructions below that any reference Any references to hps-distribution-bin.jar actually refers to a local copy of the HPS Java distribution from the target dir with an actual version.   in command syntax should actually be replaced by the path to the HPS Java distribution jar.  

This jar file should be found in your copy of HPS Java once you have built it locallyFor instance, after building the HPS Java project locally on a recent check of trunk, my distribution jar can be found here.

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

In the commands below, the version, here "3.6-SNAPSHOT", is generally left out for brevity.  When executing commands you need to point to an actual distribution jar that you have built or downloaded.

The jar file contains all of the project's dependencies in a distribution that can be run standalone using the java command.

Running the Jar File

Assuming you have followed the instructions at Installing HPS Java, you can run the standalone jar file two waysJava jar files can be run in two basic ways.  You can run a default main method using the -jar switch or you can activate any class's main method and supply a list of jar files in the classpath using the -cp switch.

Running the Default Main

...