Specifications

CHAPTER 22 Deploying Your Application
Users Guide 605
Table 22-5: PowerBuilder JDB interface files
Java support
You must deploy the pbjvm115.dll file with any applications or components
that use the Java Runtime Environment (JRE), and there must be a JRE
installed on the target computer. The JRE is required for JDBC connections.
You can copy the JRE installed with InfoMaker to the same directory as the
PowerBuilder runtime files on the target computer, or use an existing JRE
whose location is defined in the users system PATH environment variable.
Locating the Java VM
When an InfoMaker application requires a Java VM, the runtime searches for
the jvm.dll file in a subdirectory of the directory where pbjvm115.dll is installed
on the user’s computer. The jvm.dll file is installed in the JRE\bin\client
directory of JDK 1.4 and later installations, and in the JRE\bin\classic directory
in JDK 1.2 and 1.3 installations.
InfoMaker adds the location of jvm.dll to the beginning of the path currently
being used by the PowerBuilder application. This path is a copy of the path
defined in the users PATH system environment variable. InfoMaker does not
modify the environment variable maintained in the Windows registry.
To locate the jvm.dll, InfoMaker first determines where pbjvm115.dll is
installed. Suppose pbjvm115.dll is installed in
C:\Sybase\Shared\PowerBuilder.
Then InfoMaker uses this search procedure to add the location of the jvm.dll to
the path currently in use:
1 Search for the directory structure JRE\bin\client (for JDK 1.4 or later) in
C:\Sybase\Shared\PowerBuilder\ and, if found, add it to the beginning of
the path.
2 If not found, search for a JDK directory structure that contains
JRE\bin\client in C:\Sybase\Shared\PowerBuilder\ and, if found, add it to
the beginning of the path.
3 If not found, search for the directory structure JRE\bin\classic (for JDK
1.2 or 1.3) in C:\Sybase\Shared\PowerBuilder\ and, if found, add it to the
beginning of the path.
Name Description
PBJDB115.DLL PowerBuilder JDBC Driver (JDB) for JRE 1.2 or later
pbjdbc12115.jar Java package for PowerBuilder JDB driver and JRE 1.2 or
later