# J POS Installation Steps

## 1 Install Java

Java must be installed on your system before you can run the installer. This can be downloaded from http://www.oracle.com/technetwork/java/javase/downloads/index.html

Users : Install the Java Runtime Environment (JRE) (32-bit only).

Developers : Install the Java Development Environment (JDK) (32-bit only).

## 2 Configure your environment(Windows)

Configuring the environment on Windows is only necessary for application developers.

Some environment variables need to be set on Window for application development. Note that the exact procedure for setting these variables depends on the version of windows that is being used.

1. Select the "Control Panel" from the "Start" menu.

2. Select "Performance and Maintenance".

3. Select "System".

4. Select the "Advanced" tab.

5. Press the "Environment Variables" button.

6. Search for "Path" in "System variables".

7. Select "Path" and press the "Edit" button. The "Edit System Variable" dialog is displayed.

8. Add the following path to the "Variable value:" field:

<Your jdk or jre install folder>/bin

(s.g. "c:\jdk1.7.0_75\bin" or "c:\jre1.7.0_75\bin")

9. Press the "OK" button to close the "Edit System Variable" dialog.

10. Press the "OK" button to close the "Environment Variables" dialog.

11. Press the "OK" button to close the "System Properties" dialog.

If you open a new Command Prompt window, these setting will be applied. After the environment variables are set, the java version can be confirmed by typing the following in a Command Prompt window:

java -version

## 3 Configure your environment(Linux)

1. Type the following at the command prompt to change to you home directory:
cd $HOME

2. Append the following lines to your “.bash_profile” file if you installed the JRE:
JAVA_HOME=/usr/java/jre1.7.0_75
PATH=$JAVA_HOME/bin/:$PATH
export JAVA_HOME PATH

Append the following lines to your “.bash_profile” file if you installed the JDK:
export JAVA_HOME=/usr/java/jdk1.7.0_75
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

3. Save the file.

4. These settings will take effect next time you login.

5. Logout and login again. Type the following command to confirm the java version:
java –version

## 4 Installation(Windows)

Step 1:Save Setup.exe in a destination folder:

Step 2:Run Setup.exe shown as below:

In Windows 8.1, you should run Setup.exe as compatibility mode with Windows 7:

If there was no suitable JDK or JRE installed in your system, the error string will show in the terminal as follows:

Otherwise, the dialog will shown as follows:

Click "Next";

Read the license agreement of JavaPOS installation carefully. If you accept it, please click "I accept the terms of the License Agreement", click "Next";

Click "Choose..." button and set the access of JavaPOS software to be installed, but the install path can not contain the spaces and Chinese character, then click "Next" according to the interface prompt;

Click "Install";

Click "Done" then JavaPOS software is installed in users' computer.

## 5 Installation(Linux)

Step 1:Save Setup.bin in a destination folder:

Step 2:Run Setup.bin shown as below:

If there was no suitable JDK or JRE installed in your system, the error string will show in the terminal as follows:

Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program.

Otherwise, the dialog will shown as follows:

Click "Next";

Read the license agreement of JavaPOS installation carefully. If you accept it, please click "I accept the terms of the License Agreement", click "Next";

Click "Choose..." button and set the access of JavaPOS software to be installed, but the install path can not contain the spaces and Chinese character, then click "Next" according to the interface prompt;

Click "Install";

Click "Done" then JavaPOS software is installed in users' computer.

## 6 Silent Installation/Uninstallation

Silent Installation Process: Silent installation involves the following steps. 1. Preparing Information and Creating an Installation Script 2. Running Installation

Step 1:Preparing Information and Creating an Installation Script:

Using the command prompt, append "-r silent.properties" to the installer file and run it.

Example: Setup.exe -r D:\silent.properties (for Windows) Example: ./Setup.bin -r /usr/silent.properties (for Linux)

Collect information is required to perform a silent installation. Use the following procedure to collect the information. Refer to the "4 Installation(Windows)" or "5 Installation(Linux)" chapter to complete the whole installation process.

Modify the "silent.properties" file, add a line of content to the start of the file: INSTALLER_UI=silent

To ensure the quiet installation of Step 2 is correct, please uninstall the JavaPOS software.

Step 2:Running Installation and Uninstallation:

To install: Using the command prompt, append "-f silent.properties" to the installer file and run it.

Example: Setup.exe -f D:\silent.properties (for Windows) Example: ./Setup.bin -f /usr/silent.properties (for Linux)

To uninstall: Uninstallation runs silently if the installation was silent.

Example: Change SNBCJavaPOS Installation.exe (for Windows) Example: ./Change SNBCJavaPOS Installation (for Linux)

Note: Before the next installation, please uninstall the JavaPOS software.The System where the Silent installation needs to be performed has to be identical in terms of the software’s installed with the system where Installation process was recorded and “Silent.Properties” is generated for Silent installation to work.