Install Java

  1. Install Sun's Java.

    Note: Javasoft is the name of Sun's Java efforts.

    Policy: Install java products in their default directories. The reason is that we must put them into CLASSPATH and PATH environment variables. These variables become very long if we have "\Program Files\JavaSoft" in them over and over again.

    Apparently the JSEE does not include the JRE or the J2SE so it will be necessary to download and install the JRE, JSE and JSEE for the Enterprise Edition.

    1. Skip this step if you are going to install JS2SE. Download and install the Java Runtime Environment (JRE). We should be able to skip this step because it says the JRE is included in the JSE (Java Standard Edition).
    2. Download and install Java SDK (J2SE). You might have to scroll to the bottom of the page to see where you click to download. I saved a copy in d:/download/java/j2sdk1_3_0-win.exe.
      1. On FAFNIR and ANGEL the directory is c:/jdk1.3.  In the future, I want to use common directory where we put all our java.
      2. Fix a silly problem with the JDE (java development environment) and

        copy c:\jdk1.3\bin\appletviewer.exe c:\jdk1.3\bin\applet-viewer.exe

    3. For notebook computer, also download and install Java documentation. For a desktop machine with continuous DSL connection to internet, this is a waste of disk space. Store it in C:\JavaDoc\1.3SE for the standard edition and C:\JavaDoc\1.3EE (or what ever directory names are descriptive of the current version).
      1. Download standard documentation.
      2. Download enterprise documentation.
    4. Download documentation in WinHelp format and store it in C:\JavaDoc\1.3SE\WinHelp. This is so useful we should put it on all machines. Add the file JDK13 to the Microsoft Office Tool bar.
    5. Download and install Java SDK Enterprise Edition (JSEE) at http://www.javasoft.com/j2ee/j2sdkee. I saved a copy in d:\download\java. Take the default directory -- C:\j2sdkee1.2.1 in this case. Sigh.
    6. Install java Servlet API, see http://java.sun.com/products/servlet/download.html (this is the initial download page, you'll have to scroll WAY down and choose a platform for Java Servlet Development Kit – in this case Win95/NT). This might not be necessary if you have installed the enterprise edition.
    7. Download java help at http://java.sun.com/products/javahelp/download_binary.html#download
      1. Select windows as the platform (unless, of course, you are installing on Unix/Linux). Accept the agreement. 
      2. Select an FTP download from one of the mirror sites. 
      3. Click run this program from the current location. It will ask you to run it, click yes.
      4. Click next.
      5. Yes we agree to the license agreement.
      6. Read the important information. Here is some of the information for future reference:
        1. To subscribe, send mail to: listserv@javasoft.com

          In the body of the message type: 

          SUBSCRIBE JAVAHELP-INTEREST 

        2. To view archives, manage your subscription, or to unsubscribe: 

          http://archives.java.sun.com/archives/javahelp-interest.html

        3. Other information can be obtained at our web site: http://java.sun.com/products/javahelp 
      7. Now it asks where to install. The default C:\Program Files\jh1.1 is so cryptic! Change it to C:\Program Files\JavaHelp1.1
      8. Create application shortcuts in a program group (the default).
      9. Click typical install.
      10. This next display is confusing. Don't press Exit!, I almost clicked exit since it looked like I was done. It was actually a little delay before the progress bar showed.
      11. Now you can click done!
    8. Download the Java Help Users guide at http://java.sun.com/products/javahelp/. Clicking on User's guide should take you to http://java.sun.com/products/javahelp/download_binary.html#userguide.
      1. Click continue.
      2. Accept the license.
      3. Click FTP download from the nearest place.
      4. Assuming PDF is installed, it should bring up PDF.
      5. The browser won't save the file. However, PDF will! Click on the little icon of the floppy in PDF (below the tool bar for the browser) and save it in \JavaDoc\JavaHelp1.1\JavaHelp1_1.pdf 
    9. Fix the path variables.

      General instructions on environment variables.

      Minimize all the windows and right click on the "My Computer" icon at the top of the desktop. Select Environment and check the path variables. They should include "c:\jdk1.3\bin;c:\Jsdk2.0\bin;c:\util". Add c:\ j2sdkee1.2.1\bin if you installed JSEE instead of JSE. Of course, you'll have to adjust the directory name.

      1. Right click on the "my computer" icon (on the desktop and update the CLASSPATH variable to include. Ideally this should go in the system environment variables instead of the Administrator account. This way, if we have multiple accounts they will all be able to use java.
      2. Here is the string to accommodate both Java servlets: "c:\jsdk2.0\src".
      3. Be sure to look very carefully and don't confuse forward slashes with backward slashes.
    10. Install the JDBC Driver MS SQL Server.
      1. Download the driver.
      2. Download the MS Access and SQL Server drivers here: http://industry.java.sun.com/products/jdbc/drivers
    11. Don't install Java Forte Development Environment -- I don't anticipate using it http://tm0.com/sbct.cgi?s=70669675&i=248161&d=409605
      1. If this is unavailable, I have stored a copy in the download directory.
      2. Take the default installation directory of c:\forte4j
    12. Don't install the JAXP parsers (SAX and DOM) because they are bundled with Java 1.4. For legacy software install them for JDK1.3  by visiting http://java.sun.com/xml/download.html and downloading the executable. 
      1. Read the install.html and readme.html files just incase they say something useful.
      2. You would think that since this is an executable, they would update all the stuff you need! Not so. 
        1. In accord with those documents update the environment variables JAVA_HOME and check on the path variable (it should already be setup. As before, right click on the "my computer" icon on the desktop. 
        2. Define the CLASSPATH variable to be the following (note the instructions below).

          .;C:\Program Files\JavaSoft\Jaxp1.0.1\jaxp.jar;C:\Program Files\JavaSoft\Jaxp1.0.1\parser.jar;c:\jsdk2.0\lib\jsdk.jar

        3. Note that beginning period, it is extremely important! Note that this also contains the servlet API which is discussed above.

          1. Access the my computer icon by holding down the flag key on the keyboard and simultaneously hit M.
          2. Right click on my computer in the upper-left most part of the screen.
          3. Win2000 only: select properties and then advanced.
          4. Select Environments
          5. Note there are two list controls: one for account Administrator and one for the system. I thought that defining a system environment variable would do the job. It does not. Define it under administrator instead. so scroll down the the last line in the system display. It should be blank. 
          6. Now, down below this there should be some edit boxes to where you can put CLASSPATH. On Win2000, hit the new button instead.
          7. Then in the value edit box, put .;C:\Program Files\JavaSoft\Jaxp1.0.1\jaxp.jar;C:\Program Files\JavaSoft\Jaxp1.0.1\parser.jar;c:\jsdk2.0\lib\jsdk.jar.
  2. Omit this step! It is the wrong SAX parser! Install the SAX (simple API for XML). Visit http://www.megginson.com/SAX/Java/index.html and download. Create the directory c:\Java\SAX and extract the files into there.
    1. Right click on the "my computer" icon (on the desktop and update the CLASSPATH variable to include.
    2. Here is the string to accommodate both Java servlets and SAX: ".;c:\jsdk2.0\src;c:\java\Sax\src". Notice the semicolon ";" separates different entries (contrary to the unix convention of using a colon (":")
  3. Don't install additional libraries (Install additional java libraries).
  4.  
  5. Do not Install BEA Weblogic evaluation (trial) version J2EE implementation (includes servlets, EJB, JSP etc...) at http://commerce.beasys.com/Download?Action=Beta#
    1. Select a directory to install it in.
    2. Follow the instructions. Write down the password in a safe place!
    3. Install the JDBC drivers. Hopefully the directions are still at http://www.weblogic.com/docs51/techstart/install_jmsq4.html#790727. If not, run the tour like I did and it should point you to the correct location.
      1. As of 21-Aug-2000 we are using V7 SQL Server and have no need for backward compatibility for SQL Server 6.5. Therefore use evaluation copy of WebLogic jDriver for Microsoft SQL Server version 7.0.
      2. To change your CLASSPATH temporarily at a Windows Command Prompt, use this command:
        $ set CLASSPATH=%CLASSPATH%;c:\weblogic\mssqlserver4\classes;
          c:\weblogic\mssqlserver4\license

        This is not very effective, of course, since it is temporary. It also assumes that we installed in the default directory of c:\weblogic (instead we used c:\Progra~1\BEA\weblogic). This is apparently what we want (but it is still temporary).

        (If you are using the WebLogic jDriver for Microsoft SQL Server version 7.0, substitute mssqlserver4v70 for mssqlserver4 in the above command line.)

        To change your CLASSPATH permanently (see also my generic instructions):

        1. Double-click the System icon in the Control Panel.
        2. Click the Environment tab.
        3. In the lower panel, select the CLASSPATH variable. If no CLASSPATH variable is defined, add it.
        4. Add c:\weblogic\mssqlserver4\classes and c:\weblogic\mssqlserver4\license to the value of the CLASSPATH variable. Use a semicolon (;) to separate the new path from the previous value of the variable, if any.

          (If you are using the WebLogic jDriver for Microsoft SQL Server version 7.0, substitute mssqlserver4v70 for mssqlserver4 in the above classpath.)

          I just pasted this in

          c:\progra~1\BEA\weblogic\mssqlserver4v70\classes;
            c:\progra~1\BEA\weblogic\mssqlserver4v70\license

          Any program you launch after you update the CLASSPATH variable in the System control panel will have access to the new value.

          For more help setting your CLASSPATH, read Setting classpath. If you're using WebLogic jDriver for Microsoft SQL Server from within an IDE like Symantec Cafe or JBuilder, the procedure for adding classes to the CLASSPATH may be different.

      3. The directions say to download the MSSQL drives and unpack them in the top level directory. This is assuming that we used their default. I unpacked them into the top level directory and then moved the directory c:\weblogic\mssqlserver4v70 to c:\Program Files\BEA\weblogic\mssqlserver4v70.
      4. I guess we need to reboot so the IIS can see the new environment variables.
      5. Continue following their instructions in http://www.weblogic.com/docs51/techstart/install_jmsq4.html#795348.
    4. Do not install JRUN Java Servlet Engine (as of Aug-20-2000 this is obsolete). This crashed my hard disk!
      1. Go to http://www.allaire.com/products/jrun/ and download JRun for Windows (I saved a copy in d:\download\www_allaire_com__jj233w.exe but it would be preferable to get the latest version).  We want the unlimited free one (not a 30 day trial).  It would be nice to get the username and password from Siegfried, but this is not necessary -- you can always create a new account to download.
      2. It might ask for the license key which is not required for the free version of the product.
      3. I suppose we should enable <CF_Anywhere>. I don't know what it is but we can learn about it later.
      4. Go ahead and run the program and follow the installation instructions. The first thing is to stop IIS.
        1. Go to Start | Settings | Control Panel | Services. Let me explain (assuming you are running NT 4). It is very similar for Win2000 except after getting to Control Panel you click on Administrative tools and then services.
          1. "Start" means you single left click on the start button in the lower left portion of the display (in the status bar).
          2. "Settings" means means you single left click on "Settings" entry in the subsequent pop-up menu.
          3.  "Control Panel" means you single left click on the cascading menu entry "Control Panel". This should bring up a display with lots of icons.
          4. When you get to the control panel, double click on the gears icon that is labeled services.
        2. Scroll to the end of the display and highlight "World Wide Web Publishing Service" and hit the stop button. 
      5. The message from the JRun installation is "Would you like to continue this installation?" Now that we have stopped the server, click "Yes".
      6. It asks where you want to install it. I responded "c:\program files\Allaire JRun" and that failed so I just used the default of c:\JRUN. On the one hand -- I hate too many top level directories and prefer to put things in the directory "program files" whenever possible. On the other hand, like oracle, it won't work in the "Program Files" directory (we had a terrible time with the free Oracle installation which would not work in directory "program files" because there was a space in the file name and we ended up using the default directory for Oracle too)
      7. Select jsp version 1.0 if it still asks. We have no reason to muck with version 0.92.
      8. Select IIS/PWS for the web page server.
      9. Take the defaults of 127.0.0.1 and port 8081. This is weird: apparently JRUN is a separate process listening (by default) on port 8081. I guess this port is free. I wonder why it is not just a function call?
      10. The scripts directory is "C:\InetPub\scripts" on NT 4 and win2000. Add JRUN as a global filter to IIS (which is the default) and select intel-win as the platform (also the default).
      11. Now restart the www service using almost the same procedure you used to stop the www service. Again, go to Start | Settings | Control Panel | Services, scroll to the end of the display and highlight "World Wide Web Publishing Service" and hit the start button. 
      12. Look at the new window created by the installation and double left click on 
        1. "Start JRun (NT Service Mode)"
        2. the JRUN Administrator Icon.
      13. Verify that it is working by starting a browser like internet explorer and visiting the page //localhost/servlet/DateServlet. When I did it it came back and said "could not connect to JRun connector Proxy" because I did not capitalize the "D" and "S" in DateServlet. When I changed this it worked! Hurray!
      14. Go to the documentation page http://www.allaire.com/documents/cf4/acrobatdocs/JRunUsersGuide.pdf for any additional information.
      15. If you have a servlet available (check in D:\Winoop\Java or D:\WinOOP\AdvJava for files with "Servlet" in the file name like HelloClientServlet.class and HelloClientServlet.java), copy them to the C:\JRUN\Servets directory.
      16. Important: start JRUN as a service. I had to repeat these instructions several times to make them work!
        1. Go to START | programs | JRUN | NT Service. Nothing will appear.
        2. Verify that it is running by START | programs | JRUN | JRUN Administrator and the display should indicate that it is running.
     
 

 

Send mail to webmaster@SIGNITEK.com with questions or comments about this web site.