[Isolate-interest] Configuration via System properties

Curt Cox ccox at tripos.com
Thu May 26 17:40:31 EDT 2005


>From Isolate:

It appears that the properties "java.class.path" "java.ext.dirs" are now
part of an API for specifying isolate configuration, since these properties
are mentioned by name and one is used in an example.  How about adding
fields to refer to these somewhere, like the one for MAIN_CLASS? 

http://java.sun.com/j2se/1.5.0/docs/api/java/util/jar/Attributes.Name.html#M
AIN_CLASS

Where can one find a list of properties with semantics that must be
supported:
1) across all JSR-121 implementations?
2) for J2SE?
3) for J2ME?

Obviously only the first of these falls within the domain of JSR-121.  Since
properties are to be an important mechanism for configuring isolates,
however, links to authoritative references for J2ME and J2SE would be a
welcome addition. 

A one liner will give you some idea of what's available, but it doesn't
specify the consequences or tell what is likely to continue to work across
future JREs and alternate providers.  It won't show the existence of things
that are only present when specified like "sun.awt.exception.handler".  On
the whole, the use of quasi-documented properties to configure Java is
rampant.  
 
    System.getProperties().save(System.out,"");

awt.toolkit=sun.awt.windows.WToolkit
file.encoding.pkg=sun.io
file.encoding=Cp1252
file.separator=\\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=V\:\\ccox_win_sarnav\\jexe\\buoy
java.class.version=49.0
java.endorsed.dirs=C\:\\jdk1.5.0_3\\jre\\lib\\endorsed
java.ext.dirs=C\:\\jdk1.5.0_3\\jre\\lib\\ext
java.home=C\:\\jdk1.5.0_3\\jre
java.io.tmpdir=C\:\\DOCUME~1\\ccox\\LOCALS~1\\Temp\\
java.library.path=C\:\\jdk1.5.0_3\\bin;.;C\:\\WINDOWS\\System32;C\:\\WINDOWS
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_03-b07
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
java.vendor.url=http\://java.sun.com/
java.vendor=Sun Microsystems Inc.
java.version=1.5.0_03
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.5.0_03-b07
line.separator=\r\n
os.arch=x86
os.name=Windows XP
os.version=5.1
path.separator=;
sun.arch.data.model=32
sun.boot.class.path=C\:\\jdk1.5.0_3\\jre\\lib\\rt.jar;C\:\\jdk1.5.0_3\\jre\\
lib\\i18n.jar;C\:\\jdk1.5.0_3\\jre\\lib\\sunrsasign.jar;C\:\\jdk1.5.0_3\\jre
\\lib\\jsse.jar;C\:\\jdk1.5.0_3\\jre\\lib\\jce.jar;C\:\\jdk1.5.0_3\\jre\\lib
\\charsets.jar;C\:\\jdk1.5.0_3\\jre\\classes
sun.boot.library.path=C\:\\jdk1.5.0_3\\jre\\bin
sun.cpu.endian=little
sun.cpu.isalist=
sun.desktop=windows
sun.io.unicode.encoding=UnicodeLittle
sun.jnu.encoding=Cp1252
sun.management.compiler=HotSpot Client Compiler
sun.os.patch.level=Service Pack 1
user.country=US
user.dir=V\:\\ccox_win_sarnav\\jexe\\buoy
user.home=C\:\\Documents and Settings\\ccox
user.language=en
user.name=ccox
user.timezone=America/Chicago
user.variant=




More information about the Isolate-interest mailing list