Skip navigation.
Downloads | Product Documentation | Support

WebLogic Server Command Reference

## writeLicense

The `writeLicense` utility writes information about all your WebLogic licenses in a file called `writeLicense.txt`, located in the current directory. This file can then be emailed, for example, to WebLogic technical support.

### Syntax

>     $ java utils.writeLicense -nowrite -Dbea.home=path

Argument | Definition
--- | ---
`-nowrite` | Required. Sends the output to `stdout` instead of `writeLicense.txt`.
`-Dbea.home` | Required. Sets WebLogic system home (the root directory of your WebLogic Server installation).

### Examples

>     $ java utils.writeLicense -nowrite

#### Example of Unix Output

>     * * * * * * System properties * * * * * *

>     * * * * * * * java.version * * * * * * *
>     1.1.7

>     * * * * * * * java.vendor * * * * * * *
>     Sun Microsystems Inc.

>     * * * * * * * java.class.path * * * * * * *
>     c:\weblogic\classes;c:\weblogic\lib\weblogicaux.jar;
>     c:\java117\lib\classes.zip;c:\weblogic\license
>     ...

#### Example of Windows NT Output

>     * * * * * * * os.name * * * * * * *
>     Windows NT

>     * * * * * * * os.arch * * * * * * *
>     x86

>     * * * * * * * os.version * * * * * * *
>     4.0

>     * * * * * * IP * * * * * *
>     Host myserver is assigned IP address: 192.1.1.0

>     * * * * * * Location of WebLogic license files * * * * * *
>     No WebLogicLicense.class found

>     No license.bea license found in
>     weblogic.system.home or current directory

>     Found in the classpath: c:/weblogic/license/license.bea
>     Last Modified: 06/02/1999 at 12:32:12

>     * * * * * * Valid license keys * * * * * *
>     Contents:
>     Product Name    : WebLogic
>      IP Address     : 192.1.1.0-255
>      Expiration Date: never
>      Units          : unlimited
>      key            : b2fcf3a8b8d6839d4a252b1781513b9
>     ...

>     * * * * * * All license keys * * * * * *
>     Contents:
>     Product Name    : WebLogic
>      IP Address     : 192.1.1.0-255
>      Expiration Date: never
>      Units          : unlimited
>      key            : b2fcf3a8b8d6839d4a252b1781513b9
>     ...

>     * * * * * * WebLogic version * * * * * *
>     WebLogic Build: 4.0.x xx/xx/1999 10:34:35 #xxxxx