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.
- All the JAR files in the lib directory.
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
- 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 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_build010.jar:./api/lib/arlogger-9.1.11-SNAPSHOT.jar:. com.bmc.arsys.demo.javadriver.JavaDriver
Running 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