NASA - National Aeronautics and Space Administration

+ NASA Homepage
+ NASA en Español
+ Contact NASA
Go
Planetary Data System - Engineering Node Banner

UNIX Setup Options

This section details a couple of options for setting up a UNIX environment for launching Harvest Tool.

Specify the CLASSPATH on the Command-Line

An alternative method to setting the CLASSPATH variable with all of the tool's dependent JAR files is to specify the java.ext.dirs Java property on the command-line when running the tool each time. This is done by passing the property via the Java "-D" flag as demonstrated in the following example:

% java -Djava.ext.dirs=$HOME/harvest-0.4.0/lib \
gov.nasa.pds.harvest.HarvestLauncher \
-Dpds.registry="<Registry URL>" \
-Dpds.security.keystore="$HOME/harvest-0.4.0/keystore/tomcat_self_sign_keystore" \
<policy file> <command-line arguments>
        

Specify the JAR on the Command-Line

Another alternative method is to specify the executable JAR file on the command-line when running the tool each time. This is done by passing the JAR file specification via the Java "-jar" flag as demonstrated in the following example:

% java -jar $HOME/harvest-0.4.0/lib/harvest-0.4.0.jar \
-Dpds.registry="<Registry URL>" \
-Dpds.security.keystore="$HOME/harvest-0.4.0/keystore/tomcat_self_sign_keystore" \
<policy file> <command-line arguments>
        

FirstGov Logo
+ Freedom of Information Act
+ NASA 2003 Strategic Plan
+ NASA Privacy Statement, Disclaimer, and
   Accessiblity Certification

+ Copyright/Image Use Policy
NASA Logo
Curator: Emily.S.Law
Webmaster: Maryia Sauchanka-Davis
NASA Official: William Knopf
Last Updated:
+ Comments and Questions