Configures environment settings required to run the server and build components, such as PATH, CLASSPATH, and so forth.
Do not run this script directly from the command line. You can call it from your own build or run scripts to configure the environment.
Customizing the environment To customize the environment, do not modify the installed copy of the djc-setenv script. Instead, create the script local-setenv.bat (for Windows platforms) or local-setenv.sh (for UNIX platforms).
In your local-setenv script, configure any alternate or additional settings required. Note the following:
Do not overwrite environment variables that configure binary, library, or Java class search paths such as CLASSPATH, PATH, LD_LIBRARY_PATH, SHLIB_PATH, and so forth. Instead, prepend or append any entries that you require to the existing setting.
Check the value of the DJC_SETENV_WAS_SET environment variable to ensure that your settings are not applied more than once. Failure to do so can cause the PATH, CLASSPATH, or other variables to grow beyond the operating system length limit.
On Windows platforms, in local-setenv.bat, use the syntax shown in this example:
if "%DJC_SETENV_WAS_SET%" == "true" goto END set CLASSPATH=%CLASSPATH%;i:/j2eetck1.4/lib/cts.jar set CLASSPATH=%CLASSPATH%;i:/j2eetck1.4/lib/tsharness.jar set CLASSPATH=%CLASSPATH%;i:/j2eetck1.4/lib/tspackager.jar set CLASSPATH=%CLASSPATH%;i:/j2eetck1.4/lib/tsprovider.jar set CLASSPATH=%CLASSPATH%;i:/j2eetck1.4/classes :END
On UNIX platforms, in local-setenv.sh, use the syntax shown in this example:
if [ ! "$DJC_SETENV_WAS_SET" = "true" ]; then set CLASSPATH=$CLASSPATH:/my/other/stuff.jar export CLASSPATH fi