Compiling the Sample Java Clients
To compile and run the sample Java clients you need to execute "setup" script, which is located in the EMS_HOME/samples/java directory.
On Windows systems, the setup file is
setup.bat.
On UNIX systems, the setup file is
setup.sh.
- Procedure
- Make sure you have JDK 1.8 or greater installed and that you’ve added the bin directory to your PATH variable.
- Open a command line or console window, and navigate to the
EMS_HOME/samples/javadirectory. - Open the correct setup script file and verify that the
TIBEMS_ROOTenvironment variable identifies the correct pathname to your EMS_HOME directory. For example, on a Windows system this might look like:> set TIBEMS_ROOT=C:\tibco\ems\10.3 - Enter setup to set the environment and classpath:
> setup - Compile the samples:
> javac -d . *.javaThis compiles all the samples in the directory, except for those samples in the
JNDI,tibrv, andadminsubdirectories.If the files compile successfully, the class files will appear in the
EMS_HOME/samples/javadirectory. If they do not compile correctly, an error message appears.