User`s guide
Configure Data Sources and Connect to Databases
4-13
loading performance than the dynamic path. To add folders to the static path, create
the file javaclasspath.txt, and then restart MATLAB.
Create an ASCII file in your preferences folder. Name the file javaclasspath.txt.
To view the location of the preferences folder, type:
prefdir
Each line in the file is the path of a folder or JAR file. For example:
d:\work\javaclasses
To simplify the specification of folders in cross-platform environments, use any of
these macros: $matlabroot, $arch, or $jre_home.
Note: MATLAB reads the static class path only at startup. If you edit
javaclasspath.txt or change your .class files while MATLAB is running,
restart MATLAB to put those changes into effect.
If the drivers file is not located where javaclasspath.txt indicates, errors do not
appear, and Database Explorer does not establish a database connection.
Alternatively, you can create a javaclasspath.txt file in your MATLAB startup
folder. The classes that you specify in this file override the classes that you specify in
the javaclasspath.txt file in the preferences folder.
For details, see “Bringing Java Classes into MATLAB Workspace”.
3
Close the open database, tutorial.mdb, in the database program.
4
Open Database Explorer by clicking the Apps tab on the MATLAB Toolstrip. Select
Database Explorer from the Database Connectivity and Reporting section in
the apps gallery. Alternatively, at the command line, enter:
dexplore
5
Click the Database Explorer tab. Select New > JDBC to open the Create a New
JDBC data source dialog box.