Wed, 27 Apr 2016 01:25:04 +0800
Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/
changeset: 6782:28b50d07f6f8
tag: jdk8u25-b17
1 @echo off
3 REM
4 REM Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
5 REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 REM
7 REM This code is free software; you can redistribute it and/or modify it
8 REM under the terms of the GNU General Public License version 2 only, as
9 REM published by the Free Software Foundation.
10 REM
11 REM This code is distributed in the hope that it will be useful, but WITHOUT
12 REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 REM FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 REM version 2 for more details (a copy is included in the LICENSE file that
15 REM accompanied this code).
16 REM
17 REM You should have received a copy of the GNU General Public License version
18 REM 2 along with this work; if not, write to the Free Software Foundation,
19 REM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 REM
21 REM Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 REM or visit www.oracle.com if you need additional information or have any
23 REM questions.
24 REM
25 REM
27 if "%1" == "-help" goto usage
29 :JAVA_HOME
30 if not exist %JAVA_HOME%\bin\java.exe goto BADJAVAHOME
31 if not exist %JAVA_HOME\lib\sa-jdi.jar goto BADJAVAHOME
33 start %JAVA_HOME%\bin\java -classpath %JAVA_HOME%\lib\sa-jdi.jar sun.jvm.hotspot.jdi.SADebugServer %1 %2
34 goto end
36 :BADJAVAHOME
37 echo JAVA_HOME does not point to a working J2SE 1.5 installation.
39 :usage
40 echo Usage: start-debug-server [pid]
41 echo $0 <java executable> [Dr Watson dump file]
42 echo Start the JDI debug server on [pid] or [Dr Watson dump file]
43 echo so that it can be debugged from a remote machine.
44 echo JAVA_HOME must contain the pathname of a J2SE 1.5
45 echo installation.
47 :end