hotspot/agent/src/scripts/start-rmiregistry.bat
changeset 1 489c9b5090e2
child 5547 f4b087cbb361
equal deleted inserted replaced
0:fd16c54261b3 1:489c9b5090e2
       
     1 @echo off
       
     2 
       
     3 REM
       
     4 REM Copyright 2003 Sun Microsystems, Inc.  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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
       
    22 REM CA 95054 USA or visit www.sun.com if you need additional information or
       
    23 REM have any questions.
       
    24 REM  
       
    25 REM
       
    26 
       
    27 @echo off
       
    28 
       
    29 if "%1" == "-help" goto usage
       
    30 
       
    31 :JAVA_HOME
       
    32 if not exist %JAVA_HOME%\bin\rmiregistry goto BADJAVAHOME
       
    33 if not exist %JAVA_HOME%\lib\sa-jdi.jar goto BADJAVAHOME
       
    34 
       
    35 start %JAVA_HOME%\bin\rmiregistry -J-Xbootclasspath/p:%JAVA_HOME%\lib\sa-jdi.jar
       
    36 goto end
       
    37 
       
    38 :BADJAVAHOME
       
    39 echo JAVA_HOME does not point to a working J2SE 1.5 installation.
       
    40 
       
    41 :usage
       
    42 @echo usage: start-rmiregistry
       
    43 @echo  Start the rmi registry with with sa-jdi.jar on the bootclasspath
       
    44 @echo  for use by the debug server.
       
    45 @echo  JAVA_HOME must contain the pathname of a J2SE 1.5 installation.
       
    46 
       
    47 :end
       
    48