setEmbeddedCP.bat 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. @REM Licensed to the Apache Software Foundation (ASF) under one
  2. @REM or more contributor license agreements. See the NOTICE file
  3. @REM distributed with this work for additional information
  4. @REM regarding copyright ownership. The ASF licenses this file
  5. @REM to you under the Apache License, Version 2.0 (the
  6. @REM "License"); you may not use this file except in compliance
  7. @REM with the License. You may obtain a copy of the License at
  8. @REM http://www.apache.org/licenses/LICENSE-2.0
  9. @REM Unless required by applicable law or agreed to in writing,
  10. @REM software distributed under the License is distributed on an
  11. @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  12. @REM KIND, either express or implied. See the License for the
  13. @REM specific language governing permissions and limitations
  14. @REM under the License.
  15. @rem set DERBY_INSTALL=
  16. @if "%DERBY_HOME%"=="" set DERBY_HOME=%DERBY_INSTALL%
  17. @if "%DERBY_HOME%"=="" goto noderbyhome
  18. @FOR %%X in ("%DERBY_HOME%") DO SET DERBY_HOME=%%~sX
  19. set CLASSPATH=%DERBY_HOME%\lib\derby.jar;%DERBY_HOME%\lib\derbytools.jar;%DERBY_HOME%/lib/derbyoptionaltools.jar;%CLASSPATH%
  20. @goto end
  21. :noderbyhome
  22. @echo DERBY_HOME or DERBY_INSTALL not set. Set one of these variables
  23. @echo to the location of your Derby installation.
  24. @goto end
  25. :end