home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD 31 / SUPERCDa.iso / Inet / HotJava / hjava.exe / Windows / resource / jre / README < prev   
Encoding:
Text File  |  1999-04-20  |  20.0 KB  |  464 lines

  1.  
  2.                               README
  3.  
  4.                   The Java(tm) Runtime Environment
  5.                             JRE 1.1.7B
  6.  
  7.  
  8.     Updates to these release notes will be posted on the Java 
  9.     Software website:
  10.  
  11.         http://java.sun.com/products/jdk/1.1/README-update.html
  12.  
  13. -----------------------------------------------------------------------
  14. CONTENTS
  15.  
  16.   Overview of the Java Runtime Environment
  17.     - Introduction
  18.     - The Java Runtime Interpreter
  19.     - Required vs. Optional Files
  20.     - Win 32 Files 
  21.        - Required Files
  22.        - Optional Files
  23.     - Solaris Files 
  24.        - Required Files
  25.        - Optional Files
  26.  
  27.   Bundling and Running the Java Runtime
  28.     - Bundling the Java Runtime
  29.     - Runtime Documentation
  30.  
  31.  
  32. =======================================================================
  33.                  Overview of the Java Runtime Environment
  34. =======================================================================
  35.  
  36. -----------------------------------------------------------------------
  37. Introduction
  38. -----------------------------------------------------------------------
  39.  
  40. This is version 1.1.7B of the Java Runtime Environment, also known as 
  41. the Java Runtime, or JRE.  The Java Runtime is the minimum standard
  42. Java Platform for running Java programs.  It contains the Java 
  43. Virtual Machine, Java Core Classes and supporting files. 
  44.  
  45. The JRE can be invoked from the command line by using the jre tool 
  46. (see the following section). On Windows platforms, the jre tool will 
  47. ignore the CLASSPATH environment variable. For both Windows and 
  48. Solaris platforms, the -cp option is recommended to specify an 
  49. application's class path.
  50.  
  51. This version of the Java Runtime Environment contains a JIT compiler.  
  52. The JIT compiler is enabled by default on the Win32 JRE.  To disable 
  53. the compiler, you can use the -nojit option of the Java runtime 
  54. interpreter (see following section).
  55.  
  56. The Symantec JIT compiler is copyrighted (c), 1996-1998, by Symantec 
  57. Corporation. All rights reserved.
  58.  
  59. This document uses the term "vendors" to refer to licensees, 
  60. developers, and independent software vendors (ISVs) who 
  61. license and distribute the JRE with their Java programs.
  62.  
  63. The Win32 version of the JRE has an installer suitable for use 
  64. by end-users. This gives software developers the option of not 
  65. bundling the JRE with their applications. Instead, they can direct 
  66. end-users to download and install the JRE themselves.
  67.  
  68. An installer is not available for Solaris versions of the JRE. 
  69. Developers should bundle the JRE and an installer with their Solaris 
  70. applications. 
  71.  
  72. The JRE includes all of the non-debuggable .dll or .so files plus
  73. the necessary classes from the JDK software to support a runtime-only 
  74. program.  The JRE does not include any of the development tools
  75. (such as appletviewer or javac) or classes that would pertain only 
  76. to a development system.
  77.  
  78. Vendors must follow the terms of the JRE Binary Code License agreement, 
  79. which includes these terms:
  80.  
  81.  - Don't arbitrarily subset the JRE. You may omit only the
  82.    files listed below as optional.  See the section entitled 
  83.    Required vs. Optional Files. 
  84.  
  85.  - Include in your product's license the provisions called out
  86.    in the JRE Binary Code License.
  87.  
  88. Comments regarding the JRE are welcome. Please send them to 
  89. jre-comments@java.sun.com. Due to the large volume of email received 
  90. each day, JavaSoft usually cannot respond to your email personally.
  91.     
  92. The JRE is a product of Sun Microsystems, Inc.  
  93. JavaSoft is an operating company of Sun, and develops the JRE.
  94.  
  95.  
  96. -----------------------------------------------------------------------
  97. The Java Runtime Interpreter
  98. -----------------------------------------------------------------------
  99.  
  100. The jre tool invokes the Java Runtime interpreter for executing Java 
  101. applications. The tool is available in the Win32, Solaris-Sparc, and 
  102. Solaris x86 downloads of the JRE. The syntax for the jre command is:
  103.  
  104.     jre [ options ] classname <args>
  105.  
  106. The classname argument is the name of the class file to be 
  107. executed. Any arguments to be passed to the class must be placed 
  108. after the classname on the command line.
  109.  
  110. An alternative version of the tool, jrew, is available for Win32. The 
  111. jrew command is identical to jre, except that a console window is not 
  112. invoked. The syntax of the jrew command is 
  113.  
  114.     jrew [ options ] classname <args>
  115.  
  116. On Windows platforms, the jre tool will ignore the CLASSPATH 
  117. environment variable. For both Windows and Solaris platforms, the 
  118. -cp option is recommended to specify an application's class path.
  119.  
  120. Options for the jre and the jrew commands are as follows:
  121.  
  122.    -classpath path    Specifies the path that jre uses to 
  123.                look up classes. Overrides the default 
  124.                classpath.  
  125.  
  126.    -cp path        Prepends the specified path to the default 
  127.                classpath that jre uses to look up classes. 
  128.  
  129.    -help        Print a usage message.
  130.  
  131.    -mx x        Sets the maximum size of the memory allocation 
  132.                pool (the garbage collected heap) to x. The 
  133.                default is 16 megabytes of memory. x must be
  134.             greater than or equal to 1000 bytes.
  135.  
  136.    -ms x        Sets the startup size of the memory allocation 
  137.                pool (the garbage collected heap) to x. The 
  138.                default is 1 megabyte of memory. x must be
  139.             greater than 1000 bytes.
  140.  
  141.    -noasyncgc        Turns off asynchronous garbage collection. When 
  142.                activated, no garbage collection takes place 
  143.                unless it is explicitly called or the program 
  144.             runs out of memory.
  145.  
  146.    -noclassgc        Turns off garbage collection of Java classes. 
  147.                By default, the Java interpreter reclaims space 
  148.                for unused Java classes during garbage collection.
  149.  
  150.    -nojit        Don't invoke the Just In Time bytecode
  151.                 compiler. The virtual machine directly
  152.             interprets bytecodes, without converting them
  153.             to native code.
  154.  
  155.    -ss x        The -ss option sets the maximum stack size that 
  156.                can be used by C code in a thread to x. The 
  157.             default units for x are bytes. The value of x 
  158.             must be greater than or equal to 1000 bytes.
  159.  
  160.    -oss x        The -oss option sets the maximum stack size 
  161.             that can be used by Java code in a thread to x. 
  162.             The default units for x are bytes. The value of 
  163.             x must be greater than or equal to 1000 bytes.
  164.  
  165.    -v, -verbose        Causes jre to print a message to stdout each 
  166.             time a class file is loaded.
  167.  
  168.    -verify        Performs byte-code verification on the class 
  169.             file. Beware, however, that java -verify does 
  170.             not perform a full verification in all 
  171.             situations. Any code path that is not actually 
  172.             executed by the interpreter is not verified. 
  173.             Therefore, java -verify cannot be relied upon to 
  174.             certify class files unless all code paths in 
  175.             the class file are actually run.
  176.  
  177.    -verifyremote    Runs the verifier on all code that is loaded 
  178.             into the system via a classloader. verifyremote 
  179.             is the default for the interpreter.
  180.  
  181.    -noverify        Turns verification off.
  182.  
  183.    -verbosegc        Causes the garbage collector to print out 
  184.             messages whenever it frees memory.
  185.    
  186.    -DpropName=value    Defines a property value. propName is the name 
  187.             of the property whose value you want to change 
  188.             and value is the value to change it to. For 
  189.             example, the command 
  190.             java -Dawt.button.color=green ...
  191.             sets the value of the property awt.button.color 
  192.             to "green".
  193.  
  194.  
  195. -----------------------------------------------------------------------
  196. Required vs. Optional Files
  197. -----------------------------------------------------------------------
  198.  
  199. Licensees must follow the terms of the accompanying LICENSE.  
  200. The files that make up the JRE are divided into two categories:
  201. required and optional.  To paraphrase that license, files that 
  202. are marked "optional" here do not need to be included in 
  203. redistributions of the JRE with the licensee's program. Most of the 
  204. optional files provide localization support for languages.
  205.  
  206. The term "required" means licensees who distribute the runtime 
  207. must include those files with their program, whether or not their 
  208. program ever uses those files.  Those files are a required part of 
  209. the Java Platform.
  210.  
  211. The JRE includes the bin and lib directories which both must
  212. reside in the same directory.  We call this directory <runtime-dir>.
  213. In the following lists, all paths are relative to the <runtime-dir>
  214. directory.
  215.  
  216. -----------------------------------------------------------------------
  217. Win32 Files
  218. -----------------------------------------------------------------------
  219.  
  220. Two versions of the JRE are available for Win32. One version contains 
  221. files for internationalization support. The version with 
  222. internationalization support contains all the files listed below under 
  223. both the REQUIRED FILES and OPTIONAL FILES subsections. A smaller 
  224. version of the Win32 JRE is available that does not contain those 
  225. optional files that provide internationalization support.
  226.  
  227.  
  228. Required Files --------------------------------------------------------
  229.  
  230. The Win32 bin directory contains the executables and native libraries:
  231.  
  232.    bin\jre.exe                   Java runtime executable
  233.    bin\jrew.exe                  Java runtime executable, no console window
  234.    bin\rmiregistry.exe           rmiregistry executable
  235.    bin\javai.dll                 Java runtime native code library
  236.    bin\JdbcOdbc.dll              native code support for sun.jdbc
  237.    bin\jpeg.dll                  native code support for sun.jpeg
  238.    bin\math.dll                  native code support for java.math
  239.    bin\mmedia.dll                native code support for sun.audio
  240.    bin\net.dll                   native code support for java.net
  241.    bin\sysresource.dll           native code support for sun.net.www.protocol
  242.    bin\winawt.dll                native code support for sun.awt
  243.    bin\zip.dll                   native code support for java.util.zip
  244.  
  245. The Win32 lib directory contains the classes and property files:
  246.  
  247.    lib\rt.jar                    Java runtime core classes
  248.    lib\content-types.properties  MIME-type properties 
  249.    lib\awt.properties            properties for key events for java.awt
  250.    lib\font.properties           Win32 font properties for java.awt
  251.    lib\serialver.properties      serialization properties
  252.    lib\security\java.security    properties for java.security
  253.  
  254. The native code C runtime library, msvcrt.dll, is located in 
  255. the Windows system directory. The location of this directory varies 
  256. on different operating systems, but is usually
  257.  
  258.    - winnt\system32 on Windows NT
  259.    - windows98\system on Windows 98
  260.    - windows\system on Windows 95
  261.  
  262. Optional Files --------------------------------------------------------
  263.  
  264. The following files are optional:
  265.  
  266.    bin\javakey.exe         javakey executable
  267.    lib\i18n.jar                  I18N character conversion classes from 
  268.                                    sun.io
  269.    lib\font.properties.ar        AWT font properties for Arabic locale 
  270.    lib\font.properties.iw        AWT font properties for Hebrew locale
  271.    lib\font.properties.ja        AWT font properties for Japanese locale
  272.    lib\font.properties.ko        AWT font properties for Korean locale
  273.    lib\font.properties.ru        AWT font properties for Russian locale
  274.    lib\font.properties.th        AWT font properties for Thai locale
  275.    lib\font.properties.zh_TW     AWT font properties for Traditional 
  276.                                    Chinese locale
  277.    lib\font.properties.zh        AWT font properties for Simplified 
  278.                                    Chinese locale
  279.    bin\symcjit.dll               JIT compiler
  280.  
  281.  
  282. -----------------------------------------------------------------------
  283. Solaris Files
  284. -----------------------------------------------------------------------
  285.   
  286.  
  287. Required Files --------------------------------------------------------
  288.  
  289. The directory <sys> varies depending on the hardware architecture 
  290. (either "sparc" or "i386") and threads implementation (either 
  291. "green_threads" or "native_threads"). To indicate the green threads 
  292. implementation on Solaris-SPARC, for example, <sys> would stand for 
  293. "sparc/green_threads".  If the Solaris native threads pack is installed 
  294. in the Solaris-x86 JRE, for another example, <sys> could stand for 
  295. "i386/native_threads". When redistributing the JRE, you must include 
  296. either the entire set of default green threads files, or the entire set 
  297. of native threads files, or both entire sets.
  298.  
  299.    The Solaris bin directory contains the shell scripts and executables:
  300.  
  301.    bin/jre                      Java runtime shell script wrapper
  302.    bin/rmiregistry              rmiregistry shell script wrapper
  303.    bin/<sys>/jre                Java runtime executable
  304.    bin/<sys>/rmiregistry        rmiregistry executable
  305.  
  306.    The Solaris lib directory and its subdirectories contain the 
  307.    classes, properties files and native libraries:
  308.  
  309.    lib/rt.jar                    Java runtime core classes
  310.    lib/content-types.properties  MIME-type properties 
  311.    lib/awt.properties            properties for key events for java.awt
  312.    lib/font.properties           Solaris font properties for java.awt
  313.    lib/serialver.properties      properties for servialver
  314.    lib/security/java.security    properties for java.security
  315.  
  316.    lib/<sys>/libjava.so          Java runtime library
  317.    lib/<sys>/libnet.so           native code support for java.net
  318.    lib/<sys>/libmath.so          native code support for java.math
  319.    lib/<sys>/libmmedia.so        native code support for sun.audio
  320.    lib/<sys>/libawt.so           native code support for sun.awt
  321.    lib/<sys>/libjpeg.so          native code support for sun.jpeg
  322.    lib/<sys>/libJdbcOdbc.so      native code support for sun.jdbc
  323.    lib/<sys>/libsysresource.so   native code support for sun.net
  324.    lib/<sys>/libzip.so           native code support for java.util.zip
  325.  
  326. Optional Files --------------------------------------------------------
  327.  
  328. The following files are optional.
  329.  
  330.    bin/javakey             javakey shell script wrapper
  331.    bin/<sys>/javakey         javakey executable
  332.    lib/i18n.jar                  I18N character conversion classes from sun.io
  333.    lib/font.properties.cs        AWT font properties for Czech locale
  334.    lib/font.properties.pl        AWT font properties for Polish locale
  335.    lib/font.properties.hu        AWT font properties for Hungarian locale
  336.    lib/font.properties.lt        AWT font properties for Lithuanian locale
  337.    lib/font.properties.lv        AWT font properties for Latvian locale
  338.    lib/font.properties.el        AWT font properties for Greek locale
  339.    lib/font.properties.tr        AWT font properties for Turkish locale
  340.    lib/font.properties.ja        AWT font properties for Japanese locale
  341.    lib/psfont.properties.ja      AWT psfont properties for Japanese locale
  342.    lib/font.properties.ru        AWT font properties for Russian locale
  343.    lib/font.properties.ko        AWT font properties for Korean locale
  344.    lib/font.properties.zh_EUC_CN  AWT font properites for Simplified 
  345.                                     Chinese locale
  346.    lib/font.properties.zh_TW_Big5  AWT font properties for Traditional 
  347.                                      Chinese locale
  348.    lib/font.properties.zh_TW_EUC_TW  Alternative AWT font properties for 
  349.                                        Traditional Chinese locale
  350.    lib/font.properties.ISO8859_15_FDIS  Support for euro currency 
  351.                                           character on Solaris systems 
  352.    lib/<sys>/libXm.so            Symbolic link to Motif runtime library 
  353.    lib/<sys>/libXm.so.3          Motif runtime library
  354.  
  355.  
  356.  
  357. =======================================================================
  358.                 Bundling and Running the Java Runtime
  359. =======================================================================
  360.  
  361. -----------------------------------------------------------------------
  362. Bundling the Java Runtime
  363. -----------------------------------------------------------------------
  364.  
  365. This release of the JRE for Win32 comes with its own installer that 
  366. makes is suitable for downloading by end users. Java application 
  367. developers have the option of not bundling the JRE with their software. 
  368. Instead, they can direct end-users to download and install the JRE 
  369. themselves.
  370.  
  371. Solaris versions of the JRE do not have an installer. Software 
  372. developers should bundle the JRE and installer with their Solaris 
  373. software. 
  374.  
  375. When bundling the JRE with application software on Solaris, the 
  376. following points should be considered:
  377.  
  378. 1) It is suggested that the JRE be installed in its own subdirectory
  379.    (referred to below as <runtime-dir>).  Include all the the required
  380.    files listed above in the bin and lib subdirectories of 
  381.    <runtime-dir>, following the same directory hierarchy and 
  382.    relative placement of files.  The internationalization files 
  383.    marked optional can be included for language localization support.
  384.  
  385. 2) It is suggested that all application-specific classes be placed 
  386.    in a directory other than <runtime-dir>. Application-specific 
  387.    classes may be individual .class files, .jar files, or .zip 
  388.    files.
  389.  
  390.    An example directory structure might look like the following:
  391.  
  392.                <app-dir>
  393.        ________________|___________
  394.       |         |               |
  395.          bin       lib           <runtime-dir>
  396.           |         |          ________|________
  397.                  app.jar      |                 | 
  398.                              bin               lib         
  399.                               |                 |
  400.                        
  401.  
  402. 3) If native code support is required, then the native library must be 
  403.    located in LD_LIBRARY_PATH on Solaris or the executable search PATH 
  404.    on Win32. The best way to do this is to install the native libraries
  405.    in either <app-dir>/lib/<sys> on Solaris or <app-dir>\bin 
  406.    on Win32. LD_LIBRARY_PATH (on Solaris) or PATH (on Win32) should 
  407.    then be set to include these directories.
  408.  
  409. 4) The application can be invoked by using the jre command-line tool, 
  410.    using the -cp option to specify the application's class path. In 
  411.    the example directory tree above, for example, the command might 
  412.    look like this:
  413.  
  414.    <app-dir>/<runtime-dir>/bin/jre -cp <app-dir>/lib/app.jar <classname>
  415.  
  416.    Information on the jre command-line tool can be found in the 
  417.    JRE 1.1.7B CHANGES file and on the JavaSoft web site at 
  418.    http://java.sun.com/products/jdk1.1/docs/tooldocs/solaris/jre.html
  419.    and
  420.    http://java.sun.com/products/jdk1.1/docs/tooldocs/win32/jre.html
  421.  
  422.    Source code for the jre tool can be found in the Windows JDK 1.1.7B 
  423.    directory tree in the jdk1.1.7B\demo\jre\win32 folder. For the 
  424.    Solaris JDK 1.1.7B, jre source code files can be found in the 
  425.    jdk1.1.7B/demo/jre/solaris directory.
  426.  
  427.   
  428. For more information that might be relevant to installing and running
  429. the JRE, refer to the JDK installation instructions:
  430.  
  431.     http://java.sun.com/products/jdk/1.1/installation-win32-x86.html
  432.     http://java.sun.com/products/jdk/1.1/installation-solaris2.html
  433.  
  434.  
  435. -----------------------------------------------------------------------
  436. Runtime Documentation
  437. -----------------------------------------------------------------------
  438.  
  439. Runtime documentation is any documentation that an end-user might
  440. need after they have installed a Java program that runs on the JRE.
  441.  
  442. We supply the following runtime documentation:
  443.  
  444.   - Each property file contains comments that describe what the
  445.     file is useful for and how to modify it.
  446.  
  447.   - awt.properties file - KeyEvent uses it to print out properties of
  448.     key events, usually for debugging purposes.  This might be used
  449.     by a GUI debugger that needs to print out events.
  450.  
  451.   - fontprop.html file has a web page describing how to add 
  452.     fonts to the runtime.  This document is part of the 
  453.     JDK documentation, and is located both in the JDK documentation
  454.     download bundle and at the JavaSoft website:
  455.  
  456.     http://java.sun.com/products/jdk/1.1/docs/guide/intl/fontprop.html
  457.  
  458.  
  459. -----------------------------------------------------------------------
  460. Copyright (c) 1997, 1998 Sun Microsystems, Inc.
  461. 901 San Antonio Rd., Palo Alto, CA 94303 USA.
  462. All rights reserved.
  463.  
  464.