How to Set Up your Environment
This section contains information about proper configuration for use of the Pervasive Java interface.
Supported JDKs
The Pervasive Java interface supports JDKs 1.4 and higher.
CLASSPATH Environment Variable
The Pervasive PSQL SDK configuration needs the CLASSPATH variable to point to the Pervasive classes.
The sample CLASSPATH assumes that Pervasive PSQL was installed to file_path\PSQL. The Java Class Library SDK is installed to file_path\PSQL\SDK\JCL. For default locations of Pervasive PSQL files, see Where are the Pervasive PSQL files installed? in Getting Started With Pervasive PSQL.
You should update your CLASSPATH environment variable as follows:
SET CLASSPATH=.; file_path\PSQL\bin\psql.jar;
file_path\PSQL\SDK\JCL\Samples\PVideo\pvideoj.jar;
file_path\PSQL\SDK\JCL\Samples\PVideo;
where file_path equals the installation location of Pervasive PSQL.
Windows CLASSPATH
If you receive an error that a certain Pervasive class file cannot be found, your user CLASSPATH variable in the Control Panel may be overriding the system CLASSPATH variable that contains the Pervasive paths.
To verify your Windows setup (and correct if necessary):
1
Click Start, point to Settings, and then Control Panel.
2
3
Select the Environment tab.
4
Your Pervasive paths are contained in the system variable. Under User Variables, see if CLASSPATH is present. If it is not, no action is required. If it is, prepend %CLASSPATH%; to your user variable.