home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / README < prev    next >
Text File  |  1997-11-24  |  35KB  |  864 lines

  1.                              README
  2.  
  3.                     Java(tm) Development Kit
  4.                          JDK(tm) 1.1.5
  5.  
  6. -----------------------------------------------------------------------
  7. CONTENTS
  8.  
  9.   Overview of Java
  10.     - Introduction
  11.     - Purpose
  12.     - Version Compatibility
  13.     - Bug Fixes
  14.     - What the JDK Contains
  15.     - Where to Find More Information
  16.     - Submitting Comments
  17.     - Reporting Bugs and Requesting Features
  18.     - JavaBeans(tm) and the Beans Development Kit
  19.  
  20.   Installing and Running Java
  21.     - Installation Notes
  22.     - Windows
  23.       - Running Java Tools in Microsoft Windows
  24.       - Microsoft Windows PATH and CLASSPATH
  25.       - Microsoft Windows Installation Troubleshooting
  26.     - Solaris
  27.       - Running Java Tools in Solaris
  28.       - Solaris PATH and CLASSPATH
  29.       - Solaris Installation Troubleshooting
  30.     - Running Applets with the AppletViewer
  31.     - Debugging Programs with the Java Debugger
  32.  
  33.  
  34. =======================================================================
  35.                            OVERVIEW OF JAVA
  36. =======================================================================
  37.  
  38. -----------------------------------------------------------------------
  39. INTRODUCTION
  40. -----------------------------------------------------------------------
  41. Thank you for downloading the JDK(tm) 1.1.5 release.
  42.  
  43. This is version 1.1.5 of the Java Development Kit, also known as 
  44. JDK 1.1.5.  The JDK is a development environment for writing applets 
  45. and applications that conform to the Java 1.1 Core API.  Its compiler 
  46. and other tools are run from a shell and have no GUI interface. This 
  47. version includes improvements in functionality, performance, and 
  48. quality over JDK 1.0.2, and includes bug fixes since JDK 1.1.4.
  49.  
  50. JDK 1.1.5 is a bug-fix release.  Changes made to the JDK since the 
  51. first 1.1 beta release are in the file named CHANGES.
  52.  
  53. Because there are no API changes in bug-fix releases, we continue 
  54. to refer to this platform as the Java Platform 1.1 (rather than 1.1.5).   
  55. While bugs have been fixed in 1.1.5, the platform hasn't changed.
  56.  
  57. The Java Platform 1.1 offers new capabilities:  Internationalization, 
  58. signed applets, JAR file format, AWT (window toolkit) enhancements, 
  59. JavaBeans(tm) component model, networking enhancements, Math package for 
  60. large numbers, Remote Method Invocation (RMI), Reflection, database 
  61. connectivity (JDBC), new Java Native Interface, Object Serialization, 
  62. Inner Classes, and performance enhancements.
  63.  
  64. For further description of these features, see the "New Feature 
  65. Summary" in the JDK documentation.
  66.  
  67. As part of our ongoing effort to improve the quality of the JDK, we 
  68. will continue to fix bugs and develop new features. In order to help 
  69. us prioritize our bug-fixing effort, please submit any bugs you find 
  70. as soon as possible, using the procedure described in the "Reporting 
  71. Bugs" section below.
  72.  
  73. The JDK is a product of Sun Microsystems, Inc.  
  74. JavaSoft, an operating company of Sun, develops the JDK.
  75.  
  76.  
  77. -----------------------------------------------------------------------
  78. PURPOSE
  79. -----------------------------------------------------------------------
  80. The JDK allows you to:
  81.  
  82.       - Develop applets that will run in browsers supporting the
  83.         Java Platform 1.1, such as HotJava, and future versions of 
  84.         Netscape Navigator and Microsoft Internet Explorer.
  85.  
  86.       - Develop Java applications.  Applications run without the
  87.         need for a browser. (HotJava itself is a Java application.)
  88.  
  89.  
  90. -----------------------------------------------------------------------
  91. VERSION COMPATIBILITY
  92. -----------------------------------------------------------------------
  93. In general, any applet or application that ran in JDK 1.0.2 should
  94. run correctly in JDK 1.1.5.  A failure to do so is a bug, except 
  95. for a small number of cases where compatibility has had to be
  96. broken to close potential security holes, or fix implementation 
  97. or design bugs.  
  98.  
  99. Of course, applets that depend on any new 1.1 APIs will not work on 
  100. any browsers that support only 1.0.2, such as Internet Explorer 3.0 and 
  101. Netscape 3.0.  However, in general, applets relying only on APIs 
  102. defined in 1.0.2 (but compiled with the JDK 1.1 compiler) will run on 
  103. 1.0.2 browsers.  This "downwards" compatibility has not been 
  104. extensively tested and cannot be guaranteed. 
  105.  
  106. For more details, see the document on compatibility at:
  107.  
  108.    http://java.sun.com/products/jdk/1.1/compatibility.html
  109.  
  110. If you find any such incompatibilities that are not listed on the
  111. Compatibility web page, please report them to us as noted below
  112. under "Reporting Bugs," and mention that they are compatibility
  113. bugs.  Compatibility is critically important to us, and a cornerstone
  114. of the Java promise: Write Once, Run Anywhere(tm).
  115.  
  116.  
  117. -----------------------------------------------------------------------
  118. BUG FIXES
  119. -----------------------------------------------------------------------
  120. As with any release, we will continue vigorously testing and debugging 
  121. the JDK.  If we uncover any important bugs, we will post them on the 
  122. Java Developer Connection web site at:
  123.  
  124.    http://java.sun.com/jdc/bugParade/index.html
  125.  
  126. As always, your comments and bug reports are important to making 
  127. future releases successful.  We will use your feedback to help plan 
  128. future releases.  Please report bugs, request features and submit 
  129. comments using the procedure noted below in the sections "Submitting 
  130. Comments" and "Reporting Bugs and Requesting Features". 
  131.  
  132.  
  133. -----------------------------------------------------------------------
  134. WHAT THE JDK CONTAINS
  135. -----------------------------------------------------------------------
  136.  
  137. JAVA RUNTIME ----------------------------------------------------------
  138.  
  139.     - Java Core Classes (classes.zip)
  140.             DO NOT UNZIP THIS FILE!  It must remain zipped for the
  141.             compiler and interpreter to access the class files
  142.             within it properly.  This file contains all of the
  143.             the compiled .class files for the JDK.
  144.  
  145. JAVA SOURCE FILES -----------------------------------------------------
  146.  
  147.     - Java Source Files for Public Classes 
  148.             (src.zip file or src directory)
  149.             This is the set of source files used to create the
  150.             classes included in the Java Core Classes classes.zip 
  151.             file (above).  These source files are provided for 
  152.             information purposes only, to help developers learn
  153.             and use Java.  They do not include the private 
  154.             java.* classes or the sun.* classes, and therefore 
  155.             cannot be compiled into a complete classes.zip file.
  156.  
  157.             Do not modify these classes;  instead, create subclasses
  158.             and override where you need to. These classes are 
  159.             documented in the API Reference documentation, which is 
  160.             generated by javadoc.  
  161.  
  162.             How this is installed depends on the platform:
  163.  
  164.              - On Windows, these are automatically unzipped for you
  165.                during installation.
  166.  
  167.              - On Solaris, you must unzip the src.zip file yourself.
  168.                You can get a free copy of the correct version
  169.                of unzip in source form (which you must compile) from:
  170.  
  171.                http://www.cdrom.com/pub/infozip/zlib/
  172.  
  173.                or 
  174.  
  175.                ftp://ftp.cdrom.com/pub/infozip/zlib/
  176.  
  177.            or
  178.  
  179.            ftp://ftp.uu.net/pub/archiving/zip/UNIX/SUN/
  180.               
  181. JAVA TOOLS ------------------------------------------------------------
  182.  
  183.     - Java Compiler (javac)
  184.             Compiles programs written in the Java programming language
  185.             into bytecodes.
  186.  
  187.     - Java Interpreter (java)
  188.             Executes Java bytecodes.  In other words, it runs 
  189.             programs written in the Java programming language.
  190.  
  191.     - Jave Runtime Interpreter (jre)
  192.         Similar to the Java Interpreter (java), but intended for 
  193.         end users who do not require all the development-related 
  194.             options available with the java tool.
  195.  
  196.     - Java AppletViewer (appletviewer)
  197.             Used for testing and running applets.
  198.  
  199.     - Java Debugger (jdb)
  200.             Helps you find bugs in Java programs.
  201.  
  202.     - Class File Disassembler (javap)
  203.             Disassembles compiled Java files and prints out a
  204.             representation of the Java bytecodes.
  205.  
  206.     - Java Documentation Generator (javadoc)
  207.             Parses the declarations and documentation comments in
  208.             a set of Java source files and produces a set of HTML pages
  209.             describing the public and protected classes, interfaces,
  210.             constructors, methods, and fields. Also produces
  211.             a class hierarchy and an index of all members.
  212.  
  213.     - C Header and Stub File Generator (javah)
  214.             For attaching native methods to Java code.
  215.  
  216.     - Java Archive Tool (jar)
  217.             Combines many Java class files and other resources
  218.             into a single jar file.
  219.  
  220.     - Digital Signing Tool (javakey)
  221.             Manages entities, including their keys, certificates,
  222.             and the trust associated with them.
  223.  
  224.     - Native-To-ASCII Converter (native2ascii)
  225.             Converts a native encoding file to an ascii
  226.             file that includes the \udddd Unicode notation.
  227.  
  228.     - Java RMI Stub Converter (rmic)
  229.             Generates objects from the names of compiled Java classes
  230.             that contain remote object implementations.
  231.  
  232.     - Java Remote Object Registry (rmiregistry)
  233.             Creates and starts a remote object registry on the
  234.             specified port of the current host.
  235.  
  236.     - Serial Version Command (serialver)
  237.             Returns the serialVersionUID for one or more classes
  238.             in a form suitable for copying into an evolving class.
  239.  
  240.     - AWT 1.1 Conversion Tool (updateAWT)
  241.             Included with the JDK AWT documentation,
  242.             rather than in the bin directory.
  243.             Updates deprecated 1.0 AWT names to new 1.1 AWT
  244.             names (for Sun Solaris and UNIX systems, or Windows
  245.             systems with the MKS toolkit).
  246.  
  247.     - Various C libraries and include files
  248.  
  249. JAVA DOCUMENTATION AND DEMOS ------------------------------------------
  250.  
  251.     - demo directory
  252.             awt-1.1         AWT demos
  253.             i18n            Internationalization demos
  254.  
  255.             Animator        General-purpose animator
  256.             ArcTest         Test arc drawing and filling
  257.             BarChart        Simple bar-chart applet
  258.             Blink           Blinking, multicolored text
  259.             CardTest        Test card layout manager
  260.             Clock           Analog clock
  261.             DitherTest      Test image dithering
  262.             DrawTest        Draw points and lines
  263.             Fractal         Fractal figures
  264.             GraphLayout     Graph layout by iterated relaxation
  265.             GraphicsTest    Test graphics operations
  266.             ImageMap        Live-feedback image map
  267.             JumpingBox      Catch the jumping box
  268.             MoleculeViewer  Three-dimensional chemical model viewer
  269.             NervousText     Nervous text
  270.             SimpleGraph     Draw a simple graph
  271.             SortDemo        Animated sorting algorithms
  272.             SpreadSheet     Simple spreadsheet
  273.             TicTacToe       Tic-tac-toe game
  274.             WireFrame       Three-dimensional wire-frame model viewer
  275.  
  276.       RMI demos are available in the separately-downloadable 
  277.       JDK documentation.  See the entry "Demonstration Applets
  278.       and Applications" in the JDK documentation table of 
  279.       contents for access.
  280.  
  281.     - README
  282.             This file you are currently reading
  283.  
  284.     - CHANGES
  285.             Changes made in the beta and final JDK releases
  286.  
  287.     - COPYRIGHT
  288.             Copyright notice for the JDK software
  289.  
  290.     - LICENSE
  291.             License agreement for the JDK software
  292.  
  293. NOTE: The JDK does NOT include a Web browser.  To obtain the HotJava(tm)
  294. Browser, see the HotJava Browser web page:
  295.  
  296.       http://java.sun.com/products/hotjava/
  297.  
  298.  
  299. -----------------------------------------------------------------------
  300. WHERE TO FIND MORE INFORMATION
  301. -----------------------------------------------------------------------
  302. This README file and the accompanying CHANGES, LICENSE, COPYRIGHT 
  303. files, demo directory, and Java source code (src.zip) are the only
  304. "documentation" included in this JDK software bundle.
  305.  
  306. The rest of the documentation is in a separately-downloaded bundle
  307. known as the "JDK 1.1.5 Documentation," and is available from the same
  308. download page where you got this software:
  309.  
  310.           http://java.sun.com/products/jdk/1.1/
  311.  
  312. This JDK 1.1.5 Documentation includes the following information:
  313.  
  314.  - JDK Release Notes
  315.  - JDK API Reference
  316.  - JDK Guide to New Features
  317.  - JDK Demos
  318.  - JDK Tools Documentation
  319.  - Java Tutorial
  320.  
  321.  
  322. -----------------------------------------------------------------------
  323. SUBMITTING COMMENTS
  324. -----------------------------------------------------------------------
  325. We are very interested in receiving your comments and suggestions as 
  326. early as possible.  
  327.  
  328. If you have a specific feature request or bug to report, please 
  329. refer to the next section for how to submit it. Send other comments 
  330. and informal suggestions directly to us at our JavaSoft email addresses 
  331. at Sun, which are listed at:
  332.  
  333.      http://java.sun.com/mail/
  334.  
  335. Here is a summary of what is on this web page:
  336.  
  337.  - Technical Help - Sun does not provide free technical help.
  338.    See the above web page for some places to obtain help with your
  339.    programming problems.
  340.  
  341.  - JavaSoft Email Addresses - The following are our most current
  342.    JDK-related email addresses as of this release.  Use these for 
  343.    sending in comments and informal suggestions. 
  344.  
  345.       java-intl@java.sun.com                   Internationalization
  346.       java-awt@java.sun.com                    AWT package
  347.       java-security@java.sun.com               Security package
  348.       java-io@java.sun.com                     IO package
  349.       java-net@java.sun.com                    Net package
  350.       jdbc@wombat.eng.sun.com                  JDBC package
  351.       jdbc-odbc@wombat.eng.sun.com             JDBC-ODBC bridge
  352.       java-beans@java.sun.com                  Beans package
  353.       reflection-comments@worthy.eng.sun.com   Reflection package
  354.       jni@java.sun.com                         Java Native Interface
  355.       javadoc@sun.com                   Javadoc Tool
  356.  
  357.    If your comment does not fall into any of those categories,
  358.    please send it to:
  359.  
  360.       jdk-comments@java.sun.com                General comments
  361.  
  362.    While we are not able to respond individually to each comment,
  363.    we do review all comments.
  364.  
  365.  
  366. -----------------------------------------------------------------------
  367. REPORTING BUGS AND REQUESTING FEATURES
  368. -----------------------------------------------------------------------
  369. To report bugs or feature requests, go to this web page:
  370.  
  371.      http://java.sun.com/cgi-bin/bugreport.cgi
  372.  
  373. This gives you instructions for checking if your bug is a duplicate
  374. by allowing you to look in our known bugs list.  This also gives
  375. instructions for how to submit bugs and request features.
  376.  
  377. When submitting a bug, be sure you include the version number of
  378. the JDK you are running.  You can get the version number of the JDK 
  379. by executing:
  380.  
  381.     java -version
  382.  
  383.  
  384. -----------------------------------------------------------------------
  385. JAVABEANS(tm) AND THE BEANS DEVELOPMENT KIT
  386. -----------------------------------------------------------------------
  387. A version of the Beans Development Kit (BDK) is also available for 
  388. immediate download from JavaSoft.  BDK includes specific tools and 
  389. support for JavaBeans developers such as the BeanBox test containers
  390. and example beans. See:
  391.  
  392.     http://java.sun.com/beans/bdk_download.html
  393.  
  394. We will continue to ship the BDK in addition to the JDK.  
  395. Updates to the BDK, tools, and general JavaBeans information 
  396. will be posted on a regular basis to the JavaBeans web site:
  397.  
  398.      http://java.sun.com/beans
  399.  
  400.  
  401.  
  402. =======================================================================
  403.                    INSTALLING AND RUNNING JAVA
  404. =======================================================================
  405.  
  406. -----------------------------------------------------------------------
  407. INSTALLATION NOTES
  408. -----------------------------------------------------------------------
  409.     
  410.     IMPORTANT: Please make sure you understand the Copyright
  411.     and License information (in the files named COPYRIGHT and 
  412.     LICENSE) before installing this release.
  413.     
  414. The JDK 1.1.5 software and documentation are available in two separate
  415. downloadable compressed files, called "bundles".  They need to be 
  416. downloaded separately into the same directory and unpacked as follows 
  417. for the few html links between them to work.
  418.  
  419. Here are the abbreviated instructions.  (The installation procedure 
  420. is different on different platforms, so these instructions are 
  421. quite general.)
  422.  
  423.   1. Go to the JDK Download page and download the software and
  424.      documentation separately:
  425.  
  426.         http://java.sun.com/products/jdk/1.1/
  427.  
  428.   2. Follow the installation instructions for your particular 
  429.      platform at:
  430.  
  431.       http://java.sun.com/products/jdk/1.1/installation-solaris2.html
  432.  
  433.         OR
  434.  
  435.       http://java.sun.com/products/jdk/1.1/installation-win32-x86.html
  436.  
  437.   3. Unpack the software and documentation bundles according to the
  438.      instructions on the web page given in step 2.  You should end up
  439.      with the directory structure shown below.
  440.  
  441.   4. Set the PATH and CLASSPATH for Windows or Solaris as
  442.      described in the section that follows.
  443.  
  444.   5. Use a web browser to go to your new, local JDK documentation
  445.      table of contents by opening the "index.html" file in the "docs" 
  446.      directory:  jdk1.1/docs/index.html
  447.  
  448.  
  449.                            jdk1.1.5
  450.     _________________________|_____________________________________
  451.    |      |         |      |      |   |     |     |    |    |      |
  452. README CHANGES COPYRIGHT LICENSE bin lib include demo src docs index.html
  453.                                   |   |     |     |    |    |
  454.                                                             |
  455.                                _____________________________|_____
  456.                               |       |        |       |          |
  457.                              api  tooldocs relnotes  guide    index.html
  458.                               |       |        |       |
  459.   
  460.  
  461.    The "src" directory shown above originally appears as a "src.zip"
  462.    file in the Solaris installation, which you must manually unzip.
  463.    On Windows, the installer automatically unzips it for you.
  464.  
  465.  
  466. -----------------------------------------------------------------------
  467. RUNNING JAVA TOOLS IN MICROSOFT WINDOWS
  468. -----------------------------------------------------------------------
  469. After installing the JDK software, you start a tool by typing its
  470. name into the DOS window with a filename as an argument.  None of
  471. the main Java tools are Windows programs with GUI interfaces -- they
  472. are all run from the DOS command line.  (For example, if you 
  473. double-click on the Java Compiler "javac" icon, it will briefly 
  474. open and immediately close a DOS window, because that is not the 
  475. proper way to run it.)
  476.  
  477. You can specify the path to a tool either by typing the path in 
  478. front of the tool each time, or by adding the path to the startup file 
  479. (autoexec.bat).  For example, if the JDK is installed at C:\jdk1.1.5, 
  480. to run the compiler on a file myfile.java, go to a DOS shell and 
  481. execute this:
  482.  
  483.     Type:  C:\jdk1.1.5\bin\javac myfile.java
  484.  
  485.      -or- 
  486.  
  487.     Add    C:\jdk1.1.5\bin to your path statement
  488.     Type:  javac myfile.java
  489.  
  490. See the next section about setting the PATH and CLASSPATH variables.
  491.  
  492. -----------------------------------------------------------------------
  493. MICROSOFT WINDOWS PATH and CLASSPATH
  494. -----------------------------------------------------------------------
  495. The CLASSPATH is not required, but if it is set, it will need to be
  496. unset.  You may want to update the "path" variable for convenience.
  497.  
  498.      Developing in both JDK 1.0.2 and 1.1.5 - If you want 
  499.      to develop in both JDK 1.0.2 and JDK 1.1.5, you must
  500.      set CLASSPATH (and PATH) separately for each one.  
  501.      To run both versions simultaneously, you can run 
  502.      each one from its own DOS window.  If you are running 
  503.      only one at a time, you can write a batch script to
  504.      switch the value of CLASSPATH (and PATH). 
  505.  
  506.      Windows NT only - If you are using Windows NT, it is  
  507.      preferable to make the following environment variable  
  508.      changes in the Control Panel. Start the Control Panel,  
  509.      select System, then edit the environment variables. 
  510.  
  511.   1. PATH -  Add the absolute path of the "jdk1.1.5\bin" 
  512.      directory to your PATH statement as follows. 
  513.  
  514.      The PATH statement enables Windows to find the executables 
  515.      (javac, java, javadoc, etc.) from any current directory.
  516.  
  517.      To find out the current value of your PATH, at the
  518.      DOS prompt type:
  519.  
  520.          C:\> path
  521.  
  522.      To change the PATH, open the AUTOEXEC.BAT file and make the
  523.      change to the PATH statement. To edit the AUTOEXEC.BAT
  524.      file in Windows 95: 
  525.  
  526.        i. Start a text editor by choosing "Start", "Programs", 
  527.           "Accessories", and choosing WordPad or NotePad. 
  528.       ii. Choose Open from the File menu and type "c:\autoexec.bat" 
  529.           for the filename This will open the file for editing. 
  530.      iii. Look for the PATH statement. Notice that the PATH statement
  531.           is a series of directories separated by semi-colons (;).  
  532.           Windows looks for programs in the PATH directories in order,
  533.           from left to right. Look for other JDK versions in the PATH.
  534.           There should only be one path to a classes.zip file.
  535.           When in doubt, put the java directory at the end of 
  536.           the path statement. For example, in the following PATH
  537.           statement, we have added the java directory at the end: 
  538.  
  539.            PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\DOS;C:\JDK1.1.5\BIN 
  540.  
  541.      To make the path take effect, execute the following:
  542.  
  543.            C:\> autoexec.bat
  544.  
  545.  
  546.   2. CLASSPATH Environment Variable - If you follow the default 
  547.      installation, you do not need to set CLASSPATH, because the
  548.      tools automatically set it for you.  (This was actually
  549.      also true in all beta versions and the final version of 
  550.      JDK 1.1, but was undocumented.)  If your CLASSPATH has 
  551.      not previously been set, you can skip this step.
  552.  
  553.      UNSETTING CLASSPATH
  554.  
  555.        If you have previously set the CLASSPATH and want to
  556.        unset it, you normally need to change the current value
  557.        (at the command line) and the startup value (in a startup
  558.        file or script).  For example, to see if it is currently 
  559.        set, type:
  560.  
  561.           % set
  562.  
  563.        This lists all of the environment variables.  CLASSPATH
  564.        will not appear if it is not set.
  565.  
  566.        If it is set, you can unset the current value by setting
  567.        it to no value:
  568.  
  569.           % set CLASSPATH=
  570.  
  571.        Also open your startup file (autoexec.bat) or script and 
  572.        remove the path to the JDK classes from the CLASSPATH 
  573.        environment variable, if you want the change to be
  574.        permanent.
  575.  
  576.      WHAT CLASSPATH DOES
  577.  
  578.        The CLASSPATH tells the Java Virtual Machine and other Java 
  579.        applications (which are located in the "jdk1.1.5\bin" 
  580.        directory) where to find the class libraries, such as 
  581.        classes.zip file (which is in the lib directory).  
  582.        By default, the java tools temporarily append the 
  583.        following to whatever CLASSPATH you have explicitly 
  584.        set in your startup file:
  585.  
  586.        .;[bin]\..\classes;[bin]\..\lib\classes.zip
  587.  
  588.        where [bin] is substituted by the absolute path to the   
  589.        jdk1.1\bin directory.  Therefore, if you keep the bin and  
  590.        lib directories at the same directory level (that is, if 
  591.        they have a common parent directory), the Java executables 
  592.        will find the classes.  You need to set the CLASSPATH only 
  593.        if you move classes.zip or want to load a different library 
  594.        (such as one you develop).  
  595.  
  596.      Refer to the Windows Installation Troubleshooting section below 
  597.      if you have problems running the JDK.
  598.  
  599.  
  600. -----------------------------------------------------------------------
  601. MICROSOFT WINDOWS INSTALLATION TROUBLESHOOTING
  602. -----------------------------------------------------------------------
  603. Here are four troubleshooting tips for Microsoft Windows.
  604.  
  605.    * If you see the following error message 
  606.  
  607.         net.socketException: errno = 10047
  608.  
  609.         -or-
  610.  
  611.         Unsupported version of Windows Socket API
  612.  
  613.      check which TCP/IP drivers you have installed. The AppletViewer
  614.      supports only the Microsoft TCP/IP drivers included with 
  615.      Windows 95. If you are using third-party drivers (e.g., 
  616.      Trumpet Winsock), you'll need to change over to the native
  617.      Microsoft TCP/IP drivers if you want to load applets over the
  618.      network. 
  619.  
  620.    * If the AppletViewer does not load applets then you might
  621.      try the following: 
  622.  
  623.       1. set HOMEDRIVE=c:
  624.          set HOMEPATH=\
  625.          and restart the AppletViewer (in the same DOS box) 
  626.  
  627.       2. set HOME=c:\
  628.          and restart the AppletViewer (in the same DOS box) 
  629.  
  630.      If none of these work, try: 
  631.  
  632.          java -verbose sun.applet.AppletViewer
  633.  
  634.      This lists the classes that are being loaded. From this output, 
  635.      you can determine which class the AppletViewer is trying to 
  636.      load and where it's trying to load it from. Check to make sure
  637.      that the class exists and is not corrupted in some way. 
  638.  
  639.    * Error Message: "Exception in thread NULL"
  640.      or "Unable to initialize threads: cannot find class 
  641.      java/lang/Thread" (yes, with forward slashes)
  642.  
  643.      If you are getting one of these fatal error messages 
  644.      when running java, javac, or appetviewer, you should check 
  645.      your CLASSPATH environment variable. It may list 
  646.      "c:\java" or the "classes" directory from an older 
  647.      JDK release.  You can either unset the CLASSPATH variable, 
  648.      or set it to include only the latest version of the JDK class 
  649.      library.  For example: 
  650.  
  651.         C:\> set CLASSPATH=.;C:\jdk1.1.5\lib\classes.zip
  652.  
  653.      This will make sure that you are using the correct classes 
  654.      for this release.
  655.  
  656.    * Cannot close AppletViewer copyright window (Windows 95 only)
  657.      In Microsoft Windows 95, the launch bar may partially cover
  658.      the AppletViewer copyright notice window Accept and Reject 
  659.      buttons. If this happens, you can move the Windows 95
  660.      launch bar to the side of the desktop to allow access to 
  661.      the copyright window Accept and Reject buttons.
  662.  
  663.  
  664. -----------------------------------------------------------------------
  665. RUNNING JAVA TOOLS IN SOLARIS
  666. -----------------------------------------------------------------------
  667. After installing the JDK software, you start a tool by typing its
  668. name into a shell window with a filename as an argument.  You can 
  669. specify the path to a tool either by typing the path in front of 
  670. the tool each time, or by adding the path to the startup file.  
  671. For example, if the JDK is installed at /usr/local/jdk1.1.5, 
  672. to run the complier on a file myfile.java, go to a shell and execute:
  673.  
  674.     Type:  /usr/local/jdk1.1.5/bin/javac myfile.java
  675.  
  676.      -or- 
  677.  
  678.     Add  /usr/local/jdk1.1.5/bin to your path statement 
  679.     Type:  javac myfile.java
  680.  
  681. The path and CLASSPATH variables are not required, but it is helpful 
  682. to know more about them.  See the next section about setting these 
  683. variables.
  684.  
  685.  
  686. -----------------------------------------------------------------------
  687. SOLARIS PATH and CLASSPATH
  688. -----------------------------------------------------------------------
  689. The CLASSPATH is not required, but if it is set, it will need to be 
  690. unset.  You may want to update the "path" variable for convenience.
  691.  
  692.      NOTE - If you want to develop in both JDK 1.0.2 and 
  693.      JDK 1.1.5, you must set CLASSPATH (and path) separately
  694.      for each one.  To run both versions simultaneously, you 
  695.      can run each one from its own shell window.  If you are
  696.      running only one at a time, you can write a batch script 
  697.      to switch the value of CLASSPATH (and PATH). 
  698.  
  699.   1. Path Variable -  Add the absolute path of the "jdk1.1.5/bin"
  700.      directory to your Unix path variable, as follows.  
  701.  
  702.      The path variable enables Solaris to find the executables 
  703.      (javac, java, javadoc, etc.) from any current directory.
  704.      To find out if the path is currently set for any java tools,
  705.      execute:
  706.  
  707.         % which java
  708.  
  709.      This will print the path to java, if it can find it.
  710.  
  711.      If you use the C shell (csh), you can set the path in 
  712.      your startup file (~/.cshrc) as follows, for example:
  713.  
  714.         set path=($path /usr/local/jdk1.1.5/bin)
  715.  
  716.      Then load the startup file and verify that the path 
  717.      is set by repeating the "which" command above:
  718.  
  719.         % source ~/.cshrc
  720.         % which java
  721.  
  722.   2. CLASSPATH Environment Variable - If you follow the default 
  723.      installation, you do not need to set CLASSPATH, because the
  724.      shell scripts automatically set it for you.  (This was actually
  725.      also true in all beta versions and the final version of 
  726.      JDK 1.1, but was undocumented.)  If your CLASSPATH has 
  727.      not previously been set, you can skip this step.
  728.  
  729.  
  730.      If you want to develop in both JDK 1.0.2 and JDK 1.1.5, 
  731.      you must set CLASSPATH separately for each one.  To run
  732.      both simultaneously, run each one in its own DOS window.
  733.      If you are running only one at a time, you can write a batch 
  734.      script to switch the value of CLASSPATH. 
  735.  
  736.      UNSETTING CLASSPATH
  737.  
  738.        If you have previously set the CLASSPATH and want to
  739.        unset it, you normally need to change the current value
  740.        (at the command line) and the startup value (in a startup
  741.        file or script).  For example, to see if it is currently 
  742.        set, type:
  743.  
  744.           % echo $CLASSPATH
  745.  
  746.        If it is set, you can unset the current value by typing:
  747.  
  748.           % unsetenv CLASSPATH
  749.  
  750.        Also open your startup file (~/.cshrc) or script and 
  751.        remove the path to the JDK classes from the CLASSPATH 
  752.        environment variable if you want the change to be 
  753.        permanent.
  754.  
  755.      WHAT CLASSPATH DOES
  756.  
  757.        The CLASSPATH tells the Java Virtual Machine and other Java 
  758.        applications (which are located in the "jdk1.1.5/bin" directory) 
  759.        where to find the class libraries, such as classes.zip file  
  760.        (which is in the lib directory).  By default, the java tools 
  761.        temporarily append the following to whatever CLASSPATH 
  762.        you have explicitly set in your startup file:
  763.  
  764.        .:[bin]/../classes:[bin]/../lib/classes.zip
  765.  
  766.        where [bin] is substituted by the absolute path to the 
  767.        jdk1.1/bin directory.  Therefore, if you keep the bin and 
  768.        lib directories at the same directory level (that is, if
  769.        they have a common parent directory), the Java executables
  770.        will find the classes.  You need to set the CLASSPATH only 
  771.        if you move classes.zip or want to load a different library
  772.        (such as one you develop).  
  773.  
  774.      Refer to the Solaris Installation Troubleshooting section below 
  775.      if you have problems running the JDK.
  776.  
  777. -----------------------------------------------------------------------
  778. SOLARIS INSTALLATION TROUBLESHOOTING
  779. -----------------------------------------------------------------------
  780.    * Error Message: "Exception in thread NULL"
  781.      or "Unable to initialize threads: cannot find class java/lang/Thread"
  782.  
  783.      If you are getting one of these fatal error messages 
  784.      when running java, javac, or appetviewer, you should check 
  785.      your CLASSPATH environment variable. It may list 
  786.      "java" or the "classes" directory from an older 
  787.      JDK release.  You can either unset the CLASSPATH variable, 
  788.      or set it to include only the latest version of the JDK class 
  789.      library.  For example: 
  790.  
  791.      % setenv CLASSPATH .:/usr/local/jdk1.1.5/lib/classes.zip
  792.  
  793.      This will ensure that you are using the correct classes for 
  794.      this release.
  795.  
  796.  
  797. -----------------------------------------------------------------------
  798. RUNNING APPLETS WITH THE APPLETVIEWER
  799. -----------------------------------------------------------------------
  800. AppletViewer allows you to run one or more Java applets that are 
  801. called by reference in a web page (HTML file) using the APPLET tag.
  802. The AppletViewer finds the APPLET tags in the HTML file and runs 
  803. the applets (in separate windows) as specified by the tags.
  804.  
  805. AppletViewer is for viewing applets.  It cannot display an entire 
  806. web page that contains many HTML tags.  It parses only the APPLET 
  807. tag and no other HTML on the web page.
  808.   
  809. To run an applet with appletviewer, you go to a command line for 
  810. your operating system and run appletviewer, passing in the filename 
  811. or URL of the web page as its argument. 
  812. _______
  813. SOLARIS
  814.  
  815.   Here is an example of how to invoke AppletViewer on a file-based
  816.   web page in Solaris.  First change to the "jdk1.1.5" directory.  
  817.   Then execute:
  818.  
  819.   bin/appletviewer demo/GraphLayout/example1.html
  820.  
  821.   Here is an example of how to invoke AppletViewer on a URL-based
  822.   web page in Solaris. Execute:
  823.  
  824.   bin/appletviewer http://java.sun.com/applets/NervousText/example1.html
  825. _______
  826. WINDOWS
  827.   Here is an example of how to invoke AppletViewer on a file-based
  828.   web page in Windows.  Go to a DOS prompt, change to the "jdk1.1.5" 
  829.   directory and then execute:
  830.  
  831.   bin\appletviewer demo\GraphLayout\example1.html
  832.  
  833.   Here is an example of how to invoke AppletViewer on a URL-based
  834.   web page in Windows. Execute:
  835.  
  836.   bin\appletviewer http://java.sun.com/applets/NervousText/example1.html
  837.  
  838. -----------------------------------------------------------------------
  839. DEBUGGING PROGRAMS WITH THE JAVA DEBUGGER (JDB)
  840. -----------------------------------------------------------------------
  841. You can debug applets using the -debug option of appletviewer.
  842. When debugging applets, it's best to invoke appletviewer from
  843. the directory that contains the applet's HTML file.  For example,
  844. on Solaris:
  845.  
  846.      cd demo/TicTacToe
  847.      ../../bin/appletviewer -debug example1.html
  848.  
  849. On the PC:
  850.  
  851.      cd demo\TicTacToe
  852.      ..\..\bin\appletviewer -debug example1.html
  853.  
  854. You can find documentation on the debugger and its API at:
  855.  
  856.      http://java.sun.com/products/jdk/1.1/debugging/
  857.  
  858.  
  859. -----------------------------------------------------------------------
  860. Copyright ⌐ 1996,1997 Sun Microsystems, Inc.
  861. 901 San Antonio Rd., Palo Alto, CA 94303 USA
  862. All rights reserved.
  863.  
  864.