intevation@264: @echo off intevation@264: if "%1" == "setenv" goto setenv intevation@264: intevation@264: %comspec% /k MXD2map-Shell.bat setenv %1 intevation@264: goto exit intevation@264: intevation@264: :setenv intevation@264: @echo Setting environment for using MXD2map based on gisinternals.com windows builds. intevation@264: @echo See http://mxd2map.org and http://gisinternals.com/sdk/ for details. intevation@264: intevation@264: if "%2"=="hideoci" goto hideoci intevation@264: intevation@264: set ocipath=0 intevation@264: set _path="%PATH:;=" "%" intevation@264: for %%p in (%_path%) do if not "%%~p"=="" if exist %%~p\oci.dll set ocipath=1 intevation@264: intevation@264: if "%ocipath%"=="0" goto hideoci intevation@264: @echo WARNING: If you encounter problems with missing oci libraries then type: intevation@264: @echo MXD2mapShell hideoci intevation@264: goto setenv2 intevation@264: intevation@264: :hideoci intevation@264: @echo Hiding the OCI plugin library. aheinecke@324: if not exist %CD%\mapserver\bin\gdal\plugins-optional mkdir %CD%\mapserver\bin\gdal\plugins-optional aheinecke@324: if exist %CD%\mapserver\bin\gdal\plugins\ogr_OCI.dll move %CD%\mapserver\bin\gdal\plugins\ogr_OCI.dll %CD%\mapserver\bin\gdal\plugins-optional\ogr_OCI.dll aheinecke@324: if exist %CD%\mapserver\bin\gdal\plugins\gdal_GEOR.dll move %CD%\mapserver\bin\gdal\plugins\gdal_GEOR.dll %CD%\mapserver\bin\gdal\plugins-optional\gdal_GEOR.dll intevation@264: intevation@264: REM SEE Details about the installation of arcobjects.jar!! intevation@264: REM http://forums.arcgis.com/threads/17398-Unable-to-initialize-ArcObjects-environment-%28Java-API%29 intevation@264: REM http://forums.arcgis.com/threads/12833-ArcGIS-Server-initialize-license-%28Java-version%29 intevation@264: REM SEE Details about the installation of arcobjects.jar!! intevation@264: :setenv2 aheinecke@324: SET PATH=C:\Program Files\ArcGIS\DeveloperKit10.0\java\jre\bin;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files\ArcGIS\Desktop10.0\bin;C:\Program Files\ArcGIS\Desktop10.0\java\lib;C:\Program Files\ArcGIS\DeveloperKit10.0\java\tools\ant\bin;%CD%\mapserver\bin;%CD%\mapserver\bin\gdal\python\osgeo;%CD%\mapserver\bin\proj\apps;%CD%\mapserver\bin\gdal\apps;%CD%\mapserver\bin\ms\apps;%CD%\mapserver\bin\gdal\csharp;%CD%\mapserver\bin\ms\csharp;%CD%\mapserver\bin\curl;%CD%\mapserver\bin\ms\java;%PATH% aheinecke@324: SET GDAL_DATA=%CD%\mapserver\bin\gdal-data aheinecke@324: SET GDAL_DRIVER_PATH=%CD%\mapserver\bin\gdal\plugins aheinecke@324: SET PYTHONPATH=%CD%\mapserver\bin\gdal\python\osgeo intevation@264: SET PROJ_LIB=%CD%\bin\proj\SHARE intevation@264: SET CURL_CA_BUNDLE=C:\ms4w\Apache\conf\ca-bundle\cacert.pem intevation@264: SET JAVA_HOME=C:\Program Files\Java\jdk1.6.0_26 intevation@264: :exit