home *** CD-ROM | disk | FTP | other *** search
-
- IBM WIN32 Runtime Environment, Java(TM) Edition
- ===============================================
-
- The JRE is provided as a self-extracting InstallShield executable
- (ibm-jre-n116p-win32-x86.exe) and as a Zip file (ibm-jre-n116p-win32-x86.zip).
-
- Previous releases of the JRE executable used pre-existing registry settings and
- environment variables to generate the classpath. This release ignores
- those settings. The JRE use the location of the executable to
- generate the Java home directory and hence the location of the supplied classes.
-
- The IBM build number can be obtained by entering:
- jre -d
-
-
- -----------------------------------------------------------------------
- CONTENTS
-
- Overview of the Java Runtime Environment
- - Introduction
- - The Java Runtime Interpreter
- - Just-In-Time Compiler
- - Euro Currency Symbol Support
- - Required vs. Optional Files
- - Required Files
- - Optional Files
-
- Running the Java Runtime
- - Java Runtime Example
- - Runtime Documentation
-
-
- =======================================================================
- Overview of the Java Runtime Environment
- =======================================================================
-
- -----------------------------------------------------------------------
- Introduction
- -----------------------------------------------------------------------
-
- This is version 1.1.6 of the Java Runtime Environment, also known as
- the Java Runtime, or JRE. The Java Runtime is the minimum standard
- Java Platform for running Java programs. It contains the Java
- Virtual Machine, Java Core Classes and supporting files.
-
- The JRE can be invoked from the command line by using the jre tool
- (see the following section). On Windows platforms, the jre tool will
- ignore the CLASSPATH environment variable. The -cp option is recommended
- to specify an application's class path.
-
- The JRE includes all of the non-debuggable .dll or .so files plus
- the necessary classes from the JDK 1.1.6 to support a runtime-only
- program. The JRE does not include any of the development tools
- (such as appletviewer or javac) or classes that would pertain only
- to a development system.
-
-
- -----------------------------------------------------------------------
- The Java Runtime Interpreter
- -----------------------------------------------------------------------
-
- The jre tool invokes the Java Runtime interpreter for executing Java
- applications. The syntax for the jre command is:
-
- jre [ options ] classname <args>
-
- The classname argument is the name of the class file to be
- executed. Any arguments to be passed to the class must be placed
- after the classname on the command line.
-
- An alternative version of the tool, jrew, is available for Win32. The
- jrew command is identical to jre, except that a console window is not
- invoked. The syntax of the jrew command is
-
- jrew [ options ] classname <args>
-
- The JRE tool will ignore the CLASSPATH environment variable. The
- -cp option is recommended to specify an application's class path.
-
- Options for the jre and the jrew commands are as follows:
-
- -classpath path Specifies the path that jre uses to
- look up classes. Overrides the default
- classpath.
-
- -cp path Prepends the specified path to the default
- classpath that jre uses to look up classes.
-
- -help Print a usage message.
-
- -mx x Sets the maximum size of the memory allocation
- pool (the garbage collected heap) to x. The
- default is 16 megabytes of memory. x must be
- greater than or equal to 1000 bytes.
-
- -ms x Sets the startup size of the memory allocation
- pool (the garbage collected heap) to x. The
- default is 1 megabyte of memory. x must be
- greater than 1000 bytes.
-
- -noasyncgc Turns off asynchronous garbage collection. When
- activated, no garbage collection takes place
- unless it is explicitly called or the program
- runs out of memory.
-
- -noclassgc Turns off garbage collection of Java classes.
- By default, the Java interpreter reclaims space
- for unused Java classes during garbage collection.
-
- -nojit Don't invoke the Just In Time bytecode
- compiler. The virtual machine directly
- interprets bytecodes, without converting them
- to native code.
-
- -ss x The -ss option sets the maximum stack size that
- can be used by C code in a thread to x. The
- default units for x are bytes. The value of x
- must be greater than or equal to 1000 bytes.
-
- -oss x The -oss option sets the maximum stack size
- that can be used by Java code in a thread to x.
- The default units for x are bytes. The value of
- x must be greater than or equal to 1000 bytes.
-
- -v, -verbose Causes jre to print a message to stdout each
- time a class file is loaded.
-
- -verify Performs byte-code verification on the class
- file. Beware, however, that java -verify does
- not perform a full verification in all
- situations. Any code path that is not actually
- executed by the interpreter is not verified.
- Therefore, java -verify cannot be relied upon to
- certify class files unless all code paths in
- the class file are actually run.
-
- -verifyremote Runs the verifier on all code that is loaded
- into the system via a classloader. verifyremote
- is the default for the interpreter.
-
- -noverify Turns verification off.
-
- -verbosegc Causes the garbage collector to print out
- messages whenever it frees memory.
-
- -DpropName=value Defines a property value. propName is the name
- of the property whose value you want to change
- and value is the value to change it to. For
- example, the command
- java -Dawt.button.color=green ...
- sets the value of the property awt.button.color
- to "green".
-
-
- -----------------------------------------------------------------------
- Just-In-Time Compiler
- -----------------------------------------------------------------------
- The JRE includes the IBM JIT (ibmjitc.dll) which is used by default.
- To disable the JIT, pass the -nojit option to the jre:
-
- jre -nojit MyClass
-
- The JRE also use the java.compiler property to determine JIT usage.
- The JRE ignores the JAVA_COMPILER environment variable.
-
- Whether or not the JIT will be used can be determined by entering:
- jre -d
-
- If a JIT is in use, this will be indicated by
-
- compiler = enabled: ibmjitc
-
-
-
- If no JIT is in use, this will be indicated by
-
- compiler = disabled
-
-
- -----------------------------------------------------------------------
- Euro Currency Symbol Support
- -----------------------------------------------------------------------
- The JRE includes support for the Euro currency symbol as detailed in
- this section.
-
- Platform Support
- ----------------
- In order to take advantage of the support, the Operating System
- must also support the Euro. At present Microsoft's support is as follows:
-
- Windows NT 4 - Microsoft has posted a 'Windows NT 4.0 Euro product update'
- on their web site. This update includes codepage support,
- fonts and keyboard drivers. It will also be included in
- Service Pack 4.
-
- Windows 95 - Microsoft has posted a 'Windows 95 beta 1 Euro product update'
- on their web site. This update includes fonts and keyboard
- drivers
-
- Windows 98 - has codepage support for the euro, and appropriate fonts and
- keyboard drivers.
-
- The encoded Windows core fonts which contain euro support are Times New Roman,
- Courier New and Arial.
-
- If you need to change your keyboard layout or input locale (see Regional
- Settings or Keyboard on the Control Panel) you should do this before
- installing the appropriate Euro product update. The Microsoft web site
- Euro Currency Symbol FAQ page details the keyboard layouts which support the
- Euro. If your input locale is EN English (United States) please use
- US-International rather than US as the keyboard layout. You can then use the
- key combination right 'ALT' key + 5 to enter a euro character.
-
-
- The Windows code pages which include or will include the euro are:
-
- 1250 Central/Eastern European
- 1251 Cyrillic
- 1252 Western Europe
- 1253 Greek
- 1254 Turkish
- 1255 Hebrew
- 1256 Arabic
- 1257 Baltic
- 1258 Vietnamese
- 874 Thai
-
- Further information about Operating System Support for the Euro may be added
- to the Microsoft web site.
-
- Unicode
- -------
- The Unicode character for the euro is u'20ac'.
-
- Codepage Converters
- -------------------
- The codepage converters for the codepages listed above have been modified to
- support the euro symbol. A number of additional codepage converters have been
- included to support the euro on IBM codepages, including those for EBCDIC. A
- new ISO codepage, ISO8859_15, has also been added.
-
- Default codepage
- ----------------
- The default converter for Western Europe locales has been changed from 8859_1
- to Cp1252 as Cp1252 supports the euro and 8859_1 does not.
-
- Locales
- -------
- A number of new 'ResourceBundle's have been created to support the euro. These
- are:
-
- LocaleElements_de_AT_EURO
- LocaleElements_de_DE_EURO
- LocaleElements_de_LU
- LocaleElements_de_LU_EURO
- LocaleElements_en_IE_EURO
- LocaleElements_es_ES_EURO
- LocaleElements_fi_FI_EURO
- LocaleElements_fr_BE_EURO
- LocaleElements_fr_FR_EURO
- LocaleElements_fr_LU
- LocaleElements_fr_LU_EURO
- LocaleElements_it_IT_EURO
- LocaleElements_nl_BE_EURO
- LocaleElements_nl_NL_EURO
- LocaleElements_pt_PT_EURO
-
- The method java.util.Locale.getDisplayVariant() has been modified to lookup the
- localized name of the euro locale (in all cases, "Euro") from the resource data.
-
- Collation
- ---------
- Collation of currency symbols traditionally follows the English collation order
- of the symbol name. Thus 'cent' is followed by 'dollar.' According to this scheme,
- the euro symbol will sort immediately following the dollar and dong currency
- symbols and before the French franc.
-
- Java programs
- -------------
- Existing Java programs will run as before, with the exception of changes
- brought about by any new or altered default codeset converters (see below).
- Programs can use the following lines to get a locale that uses the euro from
- one that does not.
-
- if (source.getVariant().indexOf("EURO") >= 0)
- newLocale = source;
- else
- newLocale = new Locale(source.getLanguage(), source.getCountry(),
- source.getVariant().length()>0 ? (source.getVariant() + "_EURO") : "EURO");
-
-
- -----------------------------------------------------------------------
- Required vs. Optional Files
- -----------------------------------------------------------------------
-
- The files that make up the JRE are divided into two categories:
- required and optional. The files that are marked "optional" here do
- not need to be included in redistributions of the JRE with the licensee's
- program. Most of the optional files provide localization support for
- languages.
-
- The term "required" means licensees who distribute the runtime
- must include those files with their program, whether or not their
- program ever uses those files. Those files are a required part of
- the Java Platform.
-
- The JRE includes the bin and lib directories which both must
- reside in the same directory. We call this directory <runtime-dir>.
- In the following lists, all paths are relative to the <runtime-dir>
- directory (which is originally "jre1.1.6").
-
-
- Required Files --------------------------------------------------------
-
- The Win32 bin directory contains the executables and native libraries:
-
- bin\jre.exe Java runtime executable
- bin\jrew.exe Java runtime executable, no console window
- bin\rmiregistry.exe rmiregistry executable
- bin\javai.dll Java runtime native code library
- bin\JdbcOdbc.dll native code support for sun.jdbc
- bin\jpeg.dll native code support for sun.jpeg
- bin\math.dll native code support for java.math
- bin\mmedia.dll native code support for sun.audio
- bin\net.dll native code support for java.net
- bin\sysresource.dll native code support for sun.net.www.protocol
- bin\winawt.dll native code support for sun.awt
- bin\zip.dll native code support for java.util.zip
- bin\msvcrt.dll native code C runtime library
- bin\ibmjitc.dll IBM JIT compiler
-
- The Win32 lib directory contains the classes and property files:
-
- lib\rt.jar Java runtime core classes
- lib\content-types.properties MIME-type properties
- lib\awt.properties properties for key events for java.awt
- lib\font.properties Win32 font properties for java.awt
- lib\serialver.properties serialization properties
- lib\security\java.security properties for java.security
-
- Optional Files --------------------------------------------------------
-
- The following files are optional:
-
- lib\i18n.jar I18N character conversion classes from
- sun.io
- lib\font.properties.ar AWT font properties for Arabic locale
- lib\font.properties.iw AWT font properties for Hebrew locale
- lib\font.properties.ja AWT font properties for Japanese locale
- lib\font.properties.ko AWT font properties for Korean locale
- lib\font.properties.ru AWT font properties for Russian locale
- lib\font.properties.th AWT font properties for Thai locale
- lib\font.properties.zh_TW AWT font properties for Traditional
- Chinese locale
- lib\font.properties.zh AWT font properties for Simplified
- Chinese locale
-
-
- =======================================================================
- Running the Java Runtime
- =======================================================================
-
- -----------------------------------------------------------------------
- Java Runtime Example
- -----------------------------------------------------------------------
-
- The following web page has a Hello World example that you can download
- demonstrating how to create a simple Java application that runs on,
- and is bundled with, the Java Runtime Environment.
-
- http://java.sun.com/products/jdk/1.1/jre/example/
-
- This example shows how to make a simple, seamless transition
- from developing an application with the JDK, to deploying it with
- the more-lightweight JRE.
-
-
- -----------------------------------------------------------------------
- Runtime Documentation
- -----------------------------------------------------------------------
-
- Runtime documentation is any documentation that an end-user might
- need after they have installed a Java program that runs on the JRE.
-
- We supply the following runtime documentation:
-
- - Each property file contains comments that describe what the
- file is useful for and how to modify it.
-
- - awt.properties file - KeyEvent uses it to print out properties of
- key events, usually for debugging purposes. This might be used
- by a GUI debugger that needs to print out events.
-
-
- -----------------------------------------------------------------------
- (c) Copyright IBM Corporation, 1998. All rights reserved.
- -----------------------------------------------------------------------
- Copyright ⌐ 1997, 1998 Sun Microsystems, Inc.
- 901 San Antonio Rd., Palo Alto, CA 94303 USA.
- All rights reserved.
-
-