Sometimes, you might find it necessary to copy SAS JAR files from the SAS Versioned Jar Repository to another directory. For example, you might need to do this if you use those JAR files in custom Java applications that access APIs or that use SAS JDBC drivers.
To copy your JAR files to another directory:
3. After you edit these parameters, simply run the script files.
Example of an Extract.bat File in Microsoft Windows Operating Environments
set JAVA_CMD="C:\Program Files\Java\jdk1.5.0_15\bin\java"
set VJR_LOC="C:\Program Files\SAS92\SASVersionedJarRepository\9.2"
set PICKLIST="C:\Program Files\SAS92\SASDriversforJDBC\9.2\picklist"
set OUTPUT_DIR=".\jars"
%JAVA_CMD% -jar VJRExtract.jar %VJR_LOC% %PICKLIST% %OUTPUT_DIR%
Example of an Extract.sh File in UNIX Operating Environments
JAVA_CMD="/usr/local/Java/jdk1.5.0_15/bin/java"
VJR_LOC="/usr/local/SAS92/SASVersionedJarRepository/9.2"
PICKLIST="/usr/local/SAS92/SASDriversforJDBC/9.2/picklist"
OUTPUT_DIR="/usr/local/SAS92/jars"
$JAVA_CMD -jar VJRExtract.jar $VJR_LOC $PICKLIST $OUTPUT_DIR
Download and uncompress the following file to a directory on your machine: vjrextract.zip