Use the gsk7cmd command
We can run iKeyman using the gsk7cmd command to invoke the Java virtual machine with the correct parameters. Alternatively, you can use the Java command to run the class directly.
Overview
To run IKEYCMD using the gsk7cmd command, set up environmental variables. Set our PATH to the location of our Java or JRE executable as follows:
Procedure
- To run IKEYCMD using the gsk7cmd command, set up environmental variables. Set our PATH to the location of our Java or JRE executable as follows:
export PATH=/opt/IBMJava/bin:/usr/local/ibm/gsk7/bin:$PATHFor example...
export PATH=/usr/IBM/HTTPServer/java/jre/bin:/usr/bin/:$PATHThe gsk7cmd command should run from any directory using the following syntax:
gsk7cmd command...where command is the required command name.
- To run iKeyman by specifying the class directly, set up environment variables to use the IKEYCMD command-line interface as follows:
- Set our PATH to the location of our Java or JRE executable:
export PATH=/opt/IBM Java/bin:$PATH
- Set the following CLASSPATH environment variable, entered as one line:
CLASSPATH=/usr/local/ibm/gsk7/classes/cfwk.zip:/usr/local/ibm/gsk/classes/gsk7cls.jar:$CLASSPATH
Results
Once completed, IKEYCMD should run from any directory, using the following syntax:
java com.ibm.gsk.ikeyman.Ikeycmd commandYou can substitute jre for java, depending on whether we are we using JRE or JDK. For example:
jre com.ibm.gsk.ikeyman.Ikeycmd <command>
Related information
Manage keys with the IKEYCMD command line interface (Distributed systems)