Runtime configuration
To run Java API programs, make sure your execution environment includes:
- Java Runtime Environment (JRE) 1.8.40 or later.
- Required JAR files in the CLASSPATH environment variable or the java command -classpath command-line parameter. Include all the JAR file in the lib directory listed in Contents of the BMC Remedy BMC Remedy AR System Java API installation.
Changing the default configuration
To override the default Java API configuration, create the arsys_api.xml configuration file and make sure it is in the CLASSPATH environment variable or the java command -classpath command-line parameter. See the sample configuration file, arsys_sample.xml, in the lib directory for descriptions, valid values, and default values for the API configuration options.
Running the Java driver program
To run the Java driver program, perform the following steps:
- Set the Java environment variable as follows:
export PATH=/opt/jdk<JDK-Install-Dir>/bin:$path - Check the Java version by running java -version. If the correct version is displayed, it means that the java is enabled.
- Run the following command from the AR install directory (opt/bmc/ars):
java -classpath /opt/bmc/ars<AR Install Dir>/api/lib/javadriver.jar:./api/lib/arapi91_build001.jar:. com.bmc.arsys.demo.javadriver.JavaDriver
For more information, see Using-the-driver-program.
Running the Windows driver program
To run the Windows driver program, click driver for wind32 or driver_win64 from C:\Program Files\BMC Software\ARSystem<AR Install Dir>\Arserver\api. Then from the DOS window, run the required command.
You can also invoke Java driver in Windows from the following path:
C:\Program Files\BMC Software\ARSystem<AR Install Dir>\Arserver\api\lib\javadriver.bat