Installation: Difference between revisions
No edit summary |
Updated by push_wiki.py |
||
| Line 1: | Line 1: | ||
'''Installation''' covers the server-side components that an IT person sets up once the basics are working. For installing the database, the application and the database connection, follow the step-by-step [[Install Guide]] instead. | |||
{| class="wikitable" | |||
! Task !! Page | |||
|- | |||
| Which file to download || [[Downloads]] | |||
|- | |||
| Install SQL Server Express, MySQL, MariaDB or Oracle || [[Install Database]] | |||
|- | |||
| Run the Commander4j installer (Full or Workstation) || [[Install Commander4j]] | |||
|- | |||
| Connect Commander4j to the database and create the tables || [[Setup4j]] | |||
|- | |||
| Log in for the first time || [[First Login]] | |||
|- | |||
| Move to a newer version || [[Upgrading]] | |||
|} | |||
The sections below are only needed for hand-held scanners, ERP interfaces and barcode printers. | |||
== Install Java == | == Install Java == | ||
| Line 53: | Line 24: | ||
** The desktop application on a Linux operating system. | ** The desktop application on a Linux operating system. | ||
** The web components onto a server using Apache Tomcat. | ** The web components onto a server using Apache Tomcat. | ||
The Windows and macOS installers include their own Java, so nothing extra is needed there. | |||
'''Note that the web applications should be installed on a nominated server machine and not on workstations.''' | '''Note that the web applications should be installed on a nominated server machine and not on workstations.''' | ||
| Line 63: | Line 36: | ||
Ensure you download the 32/64Bit Windows Service Installer package. | Ensure you download the 32/64Bit Windows Service Installer package. | ||
== Configure Tomcat / Web Application == | == Configure Tomcat / Web Application == | ||
The web components of Commander4j are contained in the .war files which you download. You won't need all of them and their names may change with updated releases. | The web components of Commander4j are contained in the .war files which you download. You won't need all of them and their names may change with updated releases. | ||
From version 12.75 the separate web applications are combined into a single file, '''c4j_commander4j_web.war''', which is the one to use for a new installation. The three older files are listed for sites that still run them. | |||
The servlet (.war) files shown below are intended to work on Zebra Mobile Computers which have the Zebra Enterprise Browser installed. | The servlet (.war) files shown below are intended to work on Zebra Mobile Computers which have the Zebra Enterprise Browser installed. | ||
| Line 119: | Line 48: | ||
! Servlet !! Purpose !! Environment !! Notes | ! Servlet !! Purpose !! Environment !! Notes | ||
|- | |- | ||
| ''' | | '''c4j_commander4j_web.war''' || Pallet Transactions, Quality Grading, Issue / Return || Any Mobile Browser || * Recommended from 12.75 | ||
|- | |||
| '''c4j_web_react.war''' || Pallet Transactions || Any Mobile Browser || Earlier releases | |||
|- | |- | ||
| '''c4j_web_WS.war''' || Quality — Product Grading || Any Mobile Browser || | | '''c4j_web_WS.war''' || Quality — Product Grading || Any Mobile Browser || Earlier releases; only needed for Quality Control | ||
|- | |- | ||
| '''c4j_web_Issue.war''' || Issue Pallets to Order & Location || Tablet Mobile Browser || Issue/Return of Stock | | '''c4j_web_Issue.war''' || Issue Pallets to Order & Location || Tablet Mobile Browser || Earlier releases; Issue/Return of Stock | ||
|} | |} | ||
Revision as of 21:13, 22 September 2026
Installation covers the server-side components that an IT person sets up once the basics are working. For installing the database, the application and the database connection, follow the step-by-step Install Guide instead.
| Task | Page |
|---|---|
| Which file to download | Downloads |
| Install SQL Server Express, MySQL, MariaDB or Oracle | Install Database |
| Run the Commander4j installer (Full or Workstation) | Install Commander4j |
| Connect Commander4j to the database and create the tables | Setup4j |
| Log in for the first time | First Login |
| Move to a newer version | Upgrading |
The sections below are only needed for hand-held scanners, ERP interfaces and barcode printers.
Install Java
- Java 25 is needed if you are installing:
- The desktop application on a Linux operating system.
- The web components onto a server using Apache Tomcat.
The Windows and macOS installers include their own Java, so nothing extra is needed there.
Note that the web applications should be installed on a nominated server machine and not on workstations.
Recommend installing the Azul Zulu JDK from https://www.azul.com/downloads/#zulu.
Install Tomcat 11.x
- Download from Apache Tomcat Site.
Ensure you download the 32/64Bit Windows Service Installer package.
Configure Tomcat / Web Application
The web components of Commander4j are contained in the .war files which you download. You won't need all of them and their names may change with updated releases.
From version 12.75 the separate web applications are combined into a single file, c4j_commander4j_web.war, which is the one to use for a new installation. The three older files are listed for sites that still run them.
The servlet (.war) files shown below are intended to work on Zebra Mobile Computers which have the Zebra Enterprise Browser installed.
| Servlet | Purpose | Environment | Notes |
|---|---|---|---|
| c4j_commander4j_web.war | Pallet Transactions, Quality Grading, Issue / Return | Any Mobile Browser | * Recommended from 12.75 |
| c4j_web_react.war | Pallet Transactions | Any Mobile Browser | Earlier releases |
| c4j_web_WS.war | Quality — Product Grading | Any Mobile Browser | Earlier releases; only needed for Quality Control |
| c4j_web_Issue.war | Issue Pallets to Order & Location | Tablet Mobile Browser | Earlier releases; Issue/Return of Stock |
Installing the web element of Commander4j is straightforward and requires copying files from the Commander4j install directory into the Tomcat directory:
- Stop the Apache Tomcat service if it is running.
- Copy the file chosen_servlet.war from the Commander4j directory into the WebApps subdirectory of the Tomcat installation directory.
- Start the Apache Tomcat service.
- You should then notice that the chosen_servlet directory has been created under WebApps.
- Update the list of hosts the web application can connect to by copying "Commander4j/xml/hosts/hosts.xml" into "Tomcat/WebApps/chosen_servlet/xml/hosts".
- Confirm this is working by opening the URL http://servername:8080/chosen_servlet/
- If you update the hosts.xml file for a servlet you will need to either restart Apache Tomcat or stop and start the servlet from the Apache Tomcat Manager.
- If you want to connect to a SQL Server database using Windows Integrated Authentication, copy the appropriate version of the auth DLL from the downloaded MS JDBC drivers (e.g. mssql-jdbc_auth-12.10.0.x64.dll) into the Java bin folder.
Create Commander4j Services
See Install Interface Services.
Install Local Middleware
The local middleware service handles the processing of inbound and outbound interface files between Commander4j and external systems such as an ERP. It runs as a background service on the Commander4j server machine and is configured via the Interface Admin screen within the application.
To install the interface service:
- Ensure Commander4j has been installed using the Full install option, which includes the service wrapper components.
- Open Commander4j, navigate to System > Interface Admin and verify that your interface definitions are configured correctly.
- Use the Assign Service function within the application to register the interface process as a Windows service (on Windows) or configure it as a startup process on Linux/macOS.
- Once registered, start the service and monitor the Interface Log to confirm that messages are being processed correctly.
If you are using Middleware4j to transform files before they reach Commander4j, install and configure Middleware4j separately — see the Middleware4j wiki page for details.
Install Print Queues
Commander4j uses two distinct methods for printing, and each requires a different type of print queue to be set up on the workstation or server.
Standard Reports (JasperReports)
Standard reports — such as pallet summaries, despatch notes and audit reports — are printed using JasperReports and sent to a regular operating system print queue, exactly as you would print a document from a word processor. Any printer visible to the operating system can be used. The report type is configured in the Modules screen.
On Windows, ensure the printer is installed and visible in the Windows Printers & Scanners settings. On Linux, CUPS-managed queues are supported.
Barcode Labels (ZPL)
Barcode labels — pallet labels, case labels and sample labels — are printed by sending raw ZPL (Zebra Printer Language) commands directly to a ZPL compatible printer. This bypasses the normal print driver rendering pipeline entirely, so the print queue must be configured as a raw / pass-through queue.
- Windows — install the printer using the Seagull Scientific Generic Label driver, or configure a Generic / Text Only queue. Do not use a standard Zebra Windows driver, as this will re-interpret the ZPL rather than passing it through.
- macOS — configure a raw printer queue using a tool such as QZ Tray or follow the guidance at qz.io. A standard macOS printer queue will not work for ZPL output.
- Linux — configure a CUPS raw queue pointing at the printer's IP address and port 9100.
If a label is accidentally sent to a standard print queue rather than a raw queue, the printer will output pages of ZPL text commands instead of a label. This is harmless but confirms the queue type needs to be changed.
See also: Zebra ZPL Label, Intermec IPL Label, Label Template Syntax.