aoqi@0: @echo off aoqi@0: REM aoqi@0: REM Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved. aoqi@0: REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. aoqi@0: REM aoqi@0: REM This code is free software; you can redistribute it and/or modify it aoqi@0: REM under the terms of the GNU General Public License version 2 only, as aoqi@0: REM published by the Free Software Foundation. aoqi@0: REM aoqi@0: REM This code is distributed in the hope that it will be useful, but WITHOUT aoqi@0: REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or aoqi@0: REM FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License aoqi@0: REM version 2 for more details (a copy is included in the LICENSE file that aoqi@0: REM accompanied this code). aoqi@0: REM aoqi@0: REM You should have received a copy of the GNU General Public License version aoqi@0: REM 2 along with this work; if not, write to the Free Software Foundation, aoqi@0: REM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. aoqi@0: REM aoqi@0: REM Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA aoqi@0: REM or visit www.oracle.com if you need additional information or have any aoqi@0: REM questions. aoqi@0: REM aoqi@0: REM aoqi@0: aoqi@0: REM This is common environment settings for all SA aoqi@0: REM windows batch scripts aoqi@0: aoqi@0: REM set jre\bin and jre\bin\client (or server) in PATH aoqi@0: REM WINDBG_HOME must point to the Windows Debugging Tools aoqi@0: REM installation directory aoqi@0: aoqi@0: if "%SA_JAVA%" == "" goto no_sa_java aoqi@0: aoqi@0: goto sa_java_set aoqi@0: aoqi@0: :no_sa_java aoqi@0: set SA_JAVA=java aoqi@0: aoqi@0: :sa_java_set aoqi@0: aoqi@0: set SA_CLASSPATH=..\build\classes;..\src\share\lib\js.jar;sa.jar;lib\js.jar aoqi@0: aoqi@0: set SA_LIBPATH=..\src\os\win32\windbg\i386;.\win32\i386 aoqi@0: aoqi@0: set OPTIONS=-Dsun.jvm.hotspot.debugger.useWindbgDebugger aoqi@0: set OPTIONS=-Dsun.jvm.hotspot.debugger.windbg.imagePath="%PATH%" %OPTIONS% aoqi@0: set OPTIONS=-Dsun.jvm.hotspot.debugger.windbg.sdkHome="%WINDBG_HOME%" %OPTIONS% aoqi@0: aoqi@0: if "%SA_DISABLE_VERS_CHK%" == "" goto vers_chk aoqi@0: set OPTIONS="-Dsun.jvm.hotspot.runtime.VM.disableVersionCheck %OPTIONS%" aoqi@0: aoqi@0: :vers_chk aoqi@0: set SA_JAVA_CMD=%SA_JAVA% -showversion -cp %SA_CLASSPATH% -Djava.library.path=%SA_LIBPATH% %OPTIONS%