hotspot/agent/src/scripts/start-rmiregistry.bat
author katleman
Thu, 21 Aug 2014 14:16:14 -0700
changeset 25878 6d561031123e
parent 5547 f4b087cbb361
permissions -rw-r--r--
Added tag jdk9-b27 for changeset 98ce0879ab4c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
@echo off
489c9b5090e2 Initial load
duke
parents:
diff changeset
     2
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
REM
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1
diff changeset
     4
REM Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
REM
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
REM This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
REM under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
REM published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
REM
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
REM This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
REM FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
REM version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
REM accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
REM
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
REM You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
REM 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
REM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    20
REM
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1
diff changeset
    21
REM Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1
diff changeset
    22
REM or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1
diff changeset
    23
REM questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
REM  
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
REM
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
@echo off
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
if "%1" == "-help" goto usage
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
:JAVA_HOME
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
if not exist %JAVA_HOME%\bin\rmiregistry goto BADJAVAHOME
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
if not exist %JAVA_HOME%\lib\sa-jdi.jar goto BADJAVAHOME
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
start %JAVA_HOME%\bin\rmiregistry -J-Xbootclasspath/p:%JAVA_HOME%\lib\sa-jdi.jar
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
goto end
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
:BADJAVAHOME
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
echo JAVA_HOME does not point to a working J2SE 1.5 installation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
:usage
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
@echo usage: start-rmiregistry
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
@echo  Start the rmi registry with with sa-jdi.jar on the bootclasspath
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
@echo  for use by the debug server.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
@echo  JAVA_HOME must contain the pathname of a J2SE 1.5 installation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
:end
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48