Encrypted JAR files come equipped with a class which provides a command-line wrapper for some essential licensing functions.
To run the interface, run the LicenseCommand class from the encrypted JAR and pass in the appropriate parameters. The parameters always consist of
For example, type:
java -cp testjarx.jar com.simplifiedlogic.nitro.loaders.LicenseCommand getLicenseInfo -p u97w98u89g29dj
to print out information about the current license on the machine for the product whose code is u97w98u89g29dj.
When running this interface, you must be logged in to the same user account as the application that's going to use the license, because licenses are stored per-user on a machine. If you are running this to get a license for a Tomcat application, then you must be logged in as the user as whom the Tomcat server runs (such as "root") or the Tomcat app will not be able to see the license.
Running LicenseCommand with no arguments, or with an argument of -? or -help, will produce Usage output --
Usage: com.simplifiedlogic.nitro.loaders.LicenseCommand <command> <options> Valid commands: getlicense releaselicense getlicenseinfo setproxy clearproxy getproxy
Running with a single command (such as getLicense) with no arguments, or with -? or -help anywhere on the command line, will produce Usage output for that command (see following pages) but not execute the function. There is a special case for getProxy and clearProxy -- since those never take any arguments, running these commands without arguments will run the function normally.