1.\" 2.\" Copyright (C) 2005 Greg Lewis. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 8.\" 1. Redistributions of source code must retain the above copyright 9.\" notice, this list of conditions and the following disclaimer. 10.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" notice, this list of conditions and the following disclaimer in the 12.\" documentation and/or other materials provided with the distribution. 13.\" 14.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17.\" ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24.\" SUCH DAMAGE. 25.\" 26.Dd November 12, 2019 27.Os 28.Dt REGISTERVM 1 29.Sh NAME 30.Nm registervm , 31.Nm unregistervm 32.Nd register/unregister a Java VM 33.Sh SYNOPSIS 34.Nm 35.Ar /path/to/java 36.Nm unregistervm 37.Ar /path/to/java 38.Sh DESCRIPTION 39The 40.Nm registervm 41and 42.Nm unregistervm 43utilities allow a Java VM to be registered and unregistered as a possible 44Java VM that 45.Nm javavm 46can use. 47The registration process places the registered VM in the Java VM wrapper 48configuration file in sorted order. 49When unregistering the Java VM is removed from the Java VM wrapper 50configuration file and will no longer be a possible choice for 51.Nm javavm . 52.Sh FILES 53.Bl -tag -width indent 54.It Pa %%PREFIX%%/etc/javavms 55The location of the Java VM wrapper configuration file. 56.El 57.Sh EXAMPLES 58.Bl -tag -width indent 59.It %%PREFIX%%/bin/registervm %%LOCALBASE%%/openjdk11/bin/java 60Register %%LOCALBASE%%/openjdk11/bin/java as a possible choice of 61Java VM for 62.Nm javavm . 63.It %%PREFIX%%/bin/unregistervm %%LOCALBASE%%/openjdk11/bin/java 64Remove %%LOCALBASE%%/openjdk11/bin/java as a possible choice of 65Java VM for 66.Nm javavm . 67.El 68.Sh SEE ALSO 69.Xr checkvms 1 , 70.Xr javavm 1 , 71.Xr javavms 5 72.Sh BUGS 73The 74.Nm 75and 76.Nm unregistervm 77utilities remove both blank lines and purely comment lines from 78the Java VM wrapper configuration file. 79