function setup_shared
% setup_shared - sets up access to shared directories.

% Brian Schlining
% 11 Apr 2005

home = fullfile(fileparts(which('setup_matlabtools')), 'shared');

addpath(fullfile(home, 'biology'));
addpath(fullfile(home, 'common'));
addpath(fullfile(home, 'cruise'));
addpath(fullfile(home, 'graph'));
addpath(fullfile(home, 'io'));
addpath(fullfile(home, 'java'));
addpath(fullfile(home, 'map'));
addpath(fullfile(home, 'math'));
addpath(fullfile(home, 'mduc'));
addpath(fullfile(home, 'model'));
addpath(fullfile(home, 'netcdf'));
addpath(fullfile(home, 'netcdf', 'ncsource'));
addpath(fullfile(home, 'netcdf', 'nctype'));
addpath(fullfile(home, 'netcdf', 'ncutility'));
addpath(fullfile(home, 'netcdftools'));
addpath(fullfile(home, 'oasis'));
addpath(fullfile(home, 'oceans'));
addpath(fullfile(home, 'oms'));
addpath(fullfile(home, 'physics'));
addpath(fullfile(home, 'prr'));
addpath(fullfile(home, 'snctools'));
addpath(fullfile(home, 'radiometer'));
addpath(fullfile(home, 'strings'));
addpath(fullfile(home, 'time'));

warning off
try 
    java_shared;
catch
    fprintf(1, 'Unable to set the MBARI-shared java classpath\n');
end
warning on