ADC Home > Reference Library > Technical Q&As > Legacy Documents > Java >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Defining user properties with MRJAppBuilder

Q: In JBindery there was a Properties panel that allowed me to enter in my own environment properties, but I see nothing like this when using MRJAppBuilder. How do I specify my own properties when using the MRJAppBuilder tool?

A: MRJAppBuilder does not present an interface like JBindery to handle user properties, but it is a trivial matter to add your own properties. Simply add your properties as "name = value" pairs to the MRJAppBuilder properties (configuration) file. For example, look at this sample properties file:

# This file is intended for use with the MRJAppBuilder tool
# to create a double-clickable launcher for this application.
# MRJAppBuilder is part of the MRJ SDK.
# Version 1.0 03/22/2000

# Class containing 'main' = MainFrame
# Add our jar to the classpath = $APPLICATION/MRJApp.jar
# We have no parameters to main =
# Where to send stdout = $CONSOLE
# Perhaps to a file? = out.txt = false
# Where to send stderr = $CONSOLE
# Perhaps to a file? = err.txt = false

# Any user properties
mywebsite =
myfavoritecolor = green
# etc.

Once the application is built using this properties file, the custom properties can be accessed in the standard Java way using System.getProperty("propertyname").

For more information on what MRJAppBuilder properties are available, or on how to use the MRJAppBuilder in general, please refer to the documentation included in the MRJ SDK.

[Apr 17 2000]

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.