$CDF_BASE = $PSScriptRoot
$CDF_LIB = $CDF_BASE + '\lib'
$env:CDF_BASE = $CDF_BASE
$env:CDF_HELP = $CDF_BASE + '\help'
$env:CDF_LEAPSECONDSTABLE = $CDF_BASE + '\CDFLeapSeconds.txt'
$addclasspath = $CDF_BASE + '\CDFToolsDriver.jar;' + $CDF_LIB + '\cdfjava.jar;' + $CDF_LIB + '\cdfml.jar;' + $CDF_LIB + '\cdfjson.jar;' + $CDF_LIB + '\gson-2.8.6.jar;' + $CDF_LIB + '\javax.json-1.0.4.jar;.'
$curclasspath = $env:CLASSPATH -split ';'
$env:CLASSPATH = ($curclasspath + $addclasspath) -join ';'
$addpath = $CDF_BASE + ';' + $CDF_BASE + '\bin;' + $CDF_LIB
$curpath = $env:Path -split ';'
$env:PATH = ($curpath + $addpath) -join ';'
$env:TERMINFO = $CDF_BASE + '\lib\terminfo'
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding
$env:JAVA_TOOL_OPTIONS = '-Dfile.encoding=UTF8'
