Preparing the Java Environment
Before you install the SPMS API/Apps server,
- 
                     
Ensure the JDK is installed.
 - 
                     
Ensure that you have a tool for manipulating certificates installed.
 
Setting JAVA_HOME or JRE_HOME environment variable
- 
                           
Located our Java installation directory.
 - 
                           
Press Windows logo key + R key to open the Run dialog.
 - 
                           
Type sysdm.cpl in the input field and click OK
 - 
                           
At the System Properties dialog, go to Advanced tab.
 - 
                           
Click the Environment Variables button.
 - 
                           
Under System Variables section, look for JAVA_HOME or JRE_HOME variable.
 - 
                           
If it exists, click the Edit button to open the Edit System Variable window.
 - 
                           
Otherwise click New button to open the New System Variable dialog.
 - 
                           On the New/Edit System variable dialog, Variable name field, insert one of the following:
- 
                                    
JAVA_HOME if you have the JDK (Java Development Kit) installed.
 - 
                                    
JRE_HOME if you have the JRE (Java Runtime Environment) installed.
 - 
                                    
For the Variable value click the Browse Directory and select the JDK/JRE installation folder, for example
“C:\Program Files\Java\[java version]” 
 - 
                                    
 - 
                           
Click OK to apply the changes.
 
Adding Java to System Path
- 
                           
Click the Environment Variables button, then select Edit to edit the system environment variable.
 - 
                           
Under System Variables, located the ‘Path’ then click Edit.
 - 
                           
At the Edit environment variable window, select New.
 - 
                           
Insert
%JAVA_HOME%\binor%JRE_HOME%\binto the path. - 
                           
If multiple Java directory entries is present, move this directory to the top of the list using the Move Up/Move Down button.
 - 
                           
Click OK to apply the change.
 
Check Java Path
To list the different Java versions and installed path, launch the Windows Command and at the prompt, enter “where java”. The first in the list will be used by the API. Move the required Java version above the other directories. See Adding Java to System Path section on how to move the directory.
Installation Process
Installation is a three-step process, where:
- 
                        
Step 1: Create a Java keystore containing certificates purchased from a reputable Certificate Authority
 - 
                        
Step 2: Generate security keys for OAuth
 - 
                        
Step 3: Install the software