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