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.
Installing BMC Remedy Encryption Premium Security changes any active Java installation. If you install BMC Remedy Encryption Premium on a system that is running a client written using the BMC Remedy AR System Java API and later change the Java installation by installing a different version of the Java Runtime Environment (JRE) or Java Development Kit (JDK) or switching the system from one installed Java version to another, you must reinstall BMC Remedy Encryption Premium to ensure that the new or other Java installation has the changes that installation makes.
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:
- 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