|
| |
Install Java
- 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.
- 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).
- 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.
- 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.
- 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
- 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).
- Download standard
documentation.
- Download
enterprise documentation.
- 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.
- 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.
- 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.
- Download java help at http://java.sun.com/products/javahelp/download_binary.html#download
- Select windows as the platform (unless, of course, you are
installing on Unix/Linux). Accept the agreement.
- Select an FTP download from one of the mirror sites.
- Click run this program from the current location. It will ask you
to run it, click yes.
- Click next.
- Yes we agree to the license agreement.
- Read the important information. Here is some of the information
for future reference:
- To subscribe, send mail to: listserv@javasoft.com
In the body of the message type:
SUBSCRIBE JAVAHELP-INTEREST
- To view archives, manage your subscription, or to
unsubscribe:
http://archives.java.sun.com/archives/javahelp-interest.html
- Other information can be obtained at our web site: http://java.sun.com/products/javahelp
- Now it asks where to install. The default C:\Program Files\jh1.1
is so cryptic! Change it to C:\Program Files\JavaHelp1.1
- Create application shortcuts in a program group (the default).
- Click typical install.
- 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.
- Now you can click done!
- 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.
- Click continue.
- Accept the license.
- Click FTP download from the nearest place.
- Assuming
PDF is installed, it should bring up PDF.
- 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
- 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.
- 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.
- Here is the string to accommodate both Java servlets:
"c:\jsdk2.0\src".
- Be sure to look very carefully and don't confuse forward slashes
with backward slashes.
- Install the JDBC Driver MS SQL Server.
-
Download the driver.
- Download the MS Access and SQL Server drivers here:
http://industry.java.sun.com/products/jdbc/drivers
- Don't install Java Forte Development Environment -- I don't anticipate
using it http://tm0.com/sbct.cgi?s=70669675&i=248161&d=409605
- If this is unavailable, I have stored a copy in the download
directory.
- Take the default installation directory of c:\forte4j
- 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.
- Read the install.html and readme.html files just incase they say
something useful.
- You would think that since this is an executable, they would
update all the stuff you need! Not so.
- 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.
- 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
Note that beginning period, it is extremely
important! Note that this also contains the servlet
API which is discussed above.
- Access the my computer icon by holding down the flag key on
the keyboard and simultaneously hit M.
- Right click on my computer in the upper-left most part of
the screen.
- Win2000 only: select properties and then advanced.
- Select Environments
- 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.
- Now, down below this there should be some edit boxes to
where you can put
CLASSPATH. On Win2000, hit the
new button instead.
- 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.
- 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.
- Right click on the "my computer" icon (on the desktop and
update the CLASSPATH variable to include.
- 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 (":")
- Don't install additional libraries (Install additional java libraries).
-
- Do not Install BEA Weblogic evaluation (trial) version J2EE implementation
(includes servlets, EJB, JSP etc...) at http://commerce.beasys.com/Download?Action=Beta#
- Select a directory to
install it in.
- Follow the instructions. Write down the password in a safe place!
- 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.
- 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.
- 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):
- Double-click the System icon in the Control Panel.
- Click the Environment tab.
- In the lower panel, select the CLASSPATH variable. If no
CLASSPATH variable is defined, add it.
- 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.
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.
I guess we need to reboot so the IIS can see the new environment
variables.
Continue following their instructions in http://www.weblogic.com/docs51/techstart/install_jmsq4.html#795348.
Do not install JRUN Java Servlet Engine (as of Aug-20-2000 this is obsolete).
This crashed my hard disk!
- 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.
- It might ask for the license key which is not required for the
free version of the product.
- I suppose we should enable <CF_Anywhere>. I don't know what
it is but we can learn about it later.
- Go ahead and run the program and
follow the installation instructions. The first thing is to stop IIS.
- 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.
- "Start" means you single left click on the start
button in the lower left portion of the display (in the
status bar).
- "Settings" means means you single left click on
"Settings" entry in the subsequent pop-up menu.
- "Control Panel" means you single left
click on the cascading menu entry "Control Panel".
This should bring up a display with lots of icons.
- When you get to the control panel, double click on the
gears icon that is labeled services.
- Scroll to the end of the display and highlight "World
Wide Web Publishing Service" and hit the stop button.
- The message from the JRun installation is "Would you like to
continue this installation?" Now that we have stopped the
server, click "Yes".
- 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)
- Select jsp version 1.0 if it still asks. We have no reason to muck
with version 0.92.
- Select IIS/PWS for the web page server.
- 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?
- 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).
- 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.
- Look at the new window created by the installation and double left
click on
- "Start JRun (NT Service Mode)"
- the JRUN Administrator Icon.
- 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!
- Go to the documentation page http://www.allaire.com/documents/cf4/acrobatdocs/JRunUsersGuide.pdf
for any additional information.
- 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.
- Important: start JRUN as a service. I had to repeat these
instructions several times to make them work!
- Go to START | programs | JRUN | NT Service. Nothing will
appear.
- Verify that it is running by START | programs | JRUN | JRUN
Administrator and the display should indicate that it is
running.
|