annotate agent/src/scripts/start-rmiregistry.bat @ 942:2c79770d1f6e

6819085: G1: use larger and/or user settable region size Summary: Instead of the region size being hard-coded, allow the user to set it. Reviewed-by: jmasa, johnc, apetrusenko
author tonyp
date Thu, 30 Jul 2009 16:22:58 -0400
parents a61af66fc99e
children c18cbe5936b8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 @echo off
a61af66fc99e Initial load
duke
parents:
diff changeset
2
a61af66fc99e Initial load
duke
parents:
diff changeset
3 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
4 REM Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
a61af66fc99e Initial load
duke
parents:
diff changeset
5 REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
6 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
7 REM This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
8 REM under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
9 REM published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
10 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
11 REM This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
12 REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
13 REM FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
14 REM version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
15 REM accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
16 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
17 REM You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
18 REM 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
19 REM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
20 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
21 REM Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
a61af66fc99e Initial load
duke
parents:
diff changeset
22 REM CA 95054 USA or visit www.sun.com if you need additional information or
a61af66fc99e Initial load
duke
parents:
diff changeset
23 REM have any questions.
a61af66fc99e Initial load
duke
parents:
diff changeset
24 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
25 REM
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 @echo off
a61af66fc99e Initial load
duke
parents:
diff changeset
28
a61af66fc99e Initial load
duke
parents:
diff changeset
29 if "%1" == "-help" goto usage
a61af66fc99e Initial load
duke
parents:
diff changeset
30
a61af66fc99e Initial load
duke
parents:
diff changeset
31 :JAVA_HOME
a61af66fc99e Initial load
duke
parents:
diff changeset
32 if not exist %JAVA_HOME%\bin\rmiregistry goto BADJAVAHOME
a61af66fc99e Initial load
duke
parents:
diff changeset
33 if not exist %JAVA_HOME%\lib\sa-jdi.jar goto BADJAVAHOME
a61af66fc99e Initial load
duke
parents:
diff changeset
34
a61af66fc99e Initial load
duke
parents:
diff changeset
35 start %JAVA_HOME%\bin\rmiregistry -J-Xbootclasspath/p:%JAVA_HOME%\lib\sa-jdi.jar
a61af66fc99e Initial load
duke
parents:
diff changeset
36 goto end
a61af66fc99e Initial load
duke
parents:
diff changeset
37
a61af66fc99e Initial load
duke
parents:
diff changeset
38 :BADJAVAHOME
a61af66fc99e Initial load
duke
parents:
diff changeset
39 echo JAVA_HOME does not point to a working J2SE 1.5 installation.
a61af66fc99e Initial load
duke
parents:
diff changeset
40
a61af66fc99e Initial load
duke
parents:
diff changeset
41 :usage
a61af66fc99e Initial load
duke
parents:
diff changeset
42 @echo usage: start-rmiregistry
a61af66fc99e Initial load
duke
parents:
diff changeset
43 @echo Start the rmi registry with with sa-jdi.jar on the bootclasspath
a61af66fc99e Initial load
duke
parents:
diff changeset
44 @echo for use by the debug server.
a61af66fc99e Initial load
duke
parents:
diff changeset
45 @echo JAVA_HOME must contain the pathname of a J2SE 1.5 installation.
a61af66fc99e Initial load
duke
parents:
diff changeset
46
a61af66fc99e Initial load
duke
parents:
diff changeset
47 :end
a61af66fc99e Initial load
duke
parents:
diff changeset
48