This chapter discusses the following topics:
This release of WLE (Java) is supported on Solaris 2.6 and 7.0.
For the hardware and software requirements for Solaris, see Appendix B, "WLE (Java) Platform Data Sheets."
The installation procedure includes the following:
Platforms Supported
Installing the WLE (Java) Software on Solaris Systems
Installs the complete client and server WLE (Java) software
Installs a client-only subset of the WLE (Java) software
For more information about the differences between these two components, see the section titled "WLE (Java) Software Components" on page 6-2.
The following sections discuss these steps in detail.
If you are installing the WLE (Java) Full System software component, you need to download and install the Sun Microsystems, Inc. JDK 1.2.1 software to build and run WLE (Java) applications. (If you are installing the Client Only software component, skip this section and go to the section titled "Installing the WLE (Java) Software" on page 8-4.)
To download and install the JDK 1.2.1 software:
The Sun Microsystems, Inc. Web site specified in the above URL provides links to the JDK 1.2.1 software kit for Solaris systems and also to complete installation instructions.
If you are installing the WLE (Java) Full System software component, you need to download and install the Sun Microsystems, Inc. idltojava compiler to build WLE (Java) client and server applications. (If you are installing the Client Only software component, skip this section and go to the section titled "Installing the WLE (Java) Software" on page 8-4.)
To download and install the idltojava compiler:
Note:
If you are not a member of the Java Developer Connection, you will be prompted to join. There is no fee to join. After you join, you will be allowed to access the Web page.
http://java.sun.com/marketing/enterprise/jidl.html
Note:
Before beginning the installation, make sure that the BEA WLE (C++) 4.2 Full System software is installed on the machine, and use the tmshutdown command to shut down any active WLE or BEA TUXEDO applications.
Note: It takes approximately 5 minutes to install the software on a local disk; installation on a remote disk may take as long as 10 minutes.
To install the WLE (Java) software on a Solaris operating system, use the following procedure:
root or as a superuser.
Note:
If your system does not have a directly connected CD reader, you can mount the CD on a remote system, share (export) the CD file system, and then mount the remote file system. Alternatively, you can mount the CD on a remote system, copy the content of the CD directory for your platform to the system in which you plan to install the WLE (Java) software, and continue with the remainder of the installation procedure. Table 8-1 lists the CD directory name.
Solaris v2.6 on UltraSPARC
Solaris v7.0 on UltraSPARC
sun5x/so127
Table 8-1 WLE (Java) 4.2 Software CD Directory Name for the Solaris Platform
Platform
Directory
sun5x/sol26
cd) to the /cdrom/bea#1 directory.
sh ./install.sh. The following
prompt is displayed:
01) SUN5X/SOL26 02) SUN5X/SOL27
Install which platform's files? [01-2, q to quit, l for list]:
** You have chosen to install from sun5x/sol26 **
BEA WebLogic Enterprise (Java) 4.2
This directory contains the BEA WebLogic Enterprise System for
SunOS 5.6 (Solaris 2.6) on SPARC.Is this correct? [y,n,q]:
y. The following information is displayed:
To terminate the installation at any time
press the interrupt key,
typically <del>, <break>, or <ctrl+c>.The following packages are available:
1 wlejava BEA WebLogic Enterprise (Java)
Select the package(s) you wish to install (or 'all' to install
all packages) (default: all) [?,??,q]: 1. The following information is displayed:
BEA WebLogic Enterprise (Java)
(sparc) Release 4.2
Copyright (c) 1999 BEA Systems, Inc.
All Rights Reserved.
BEA, M3 and WebLogic are trademarks of BEA Systems, Inc.WebLogic Enterprise (C++) is required to install this Package
Location of existing BEA software installation [?,q]:
/usr/local/wledir. The
following information is displayed:
Determining if sufficient space is available ...WebLogic Enterprise (Java)
17752 blocks are required
1035478 blocks are available to /usr/local/wledir
Using /usr/local/wledir as the base directory
The following installation options are available:
1 both Install the full system - client and server
2 client Install the client only
Select an option (default: both) [?,??,q]:2. Then skip the remainder
of this section and go to the section "Installing the Client Only Component" on
page 8-7.
After the software installation is completed, the following messages are displayed:
... finished
Changing file permissions...
... finished
Installation of BEA WebLogic Enterprise (Java) was successful
Please don't forget to fill out and send in your registration card
cd) to the root directory and enter eject.
If you chose to install the Client Only component in step 10 in the preceding section, the WLE (Java) Client Only software is installed.
After the software installation is completed, the following messages are displayed:
... finished
Changing file permissions...
... finished
Installation of BEA WebLogic Enterprise (Java) was successful
Please don't forget to fill out and send in your registration card
After the installation is complete, open the CD reader and remove the CD. To open the CD reader, change (cd) to the root directory and enter eject.
The Client Only kit requires, as a minimum, the JRE. If you already have the JRE, or the JDK 1.2.1 software, installed on your machine, you can skip this step in the installation procedure.
To download and install the JRE software:
The Sun Microsystems, Inc. Web site specified in the above URL provides links to the JRE software kit for Solaris systems and also to complete installation instructions.
Before you use the WLE (Java) software, you need to set four environment variables: JAVA_HOME, PATH, LD_LIBRARY_PATH, and CLASSPATH.
To set these variables, perform the following procedure:
JAVA_HOME variable to the directory where you installed JDK 1.2.1,
enter:JAVA_HOME=/home/<user_name>/jdk1.2.1
PATH variable to contain JAVA_HOME, enter:
PATH=$JAVA_HOME/bin:$PATH
LD_LIBRARY_PATH variable, enter:
LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/sparc
If you have installed the WLE (Java) Full System software component, you can verify that the installation has been successful by executing the Java simpapp sample application. This "simple Java application" is a WLE (Java) client/server application that converts strings to uppercase and lowercase letters.
To run the simpapp application, open a terminal window and perform the following steps:
/home/<username>/simpapp_java-and copy the content of the
simpapp_java directory to it. If you installed the WLE (Java) software in the
default directory, the simpapp_java directory is located at
usr/local/wledir/samples/corba/simpapp_java.
cd) to the copy directory.
chmod +w *runme.ksh file to give it execute permission,
enter the following:
Testing simpapp
cleaned up
prepared
built
loaded ubb
booted
ran
shutdown
saved results
PASSED
simpapp application manually to observe the processes starting and
stopping, do the following:
KSH.
tmboot -y. The application starts several processes.
java -DTOBJADDR=$TOBJADDR SimpleClient. The prompt String?
is displayed.
tmshutdown -y. The application shuts down the processes.
. ./results/setenv.ksh
If you have installed the WLE (Java) Client Only software component on your machine, you can verify that the installation has been successful by running the client component of the Java simpapp application.
To run the client component of the Java simpapp application:
simpapp application is running by
checking the following:
simpapp sample application has been built and is running on the server machine, as described in the section "Running the Java simpapp Sample Application to Verify the Full System Software Installation" on page 8-8.
SimpleClient.jar from the directory created in step 1 in the
section titled "Running the Java simpapp Sample Application to Verify the Full
System Software Installation" on page 8-8 to the client machine.
$TUXDIR/udataobj/java/jdk/m3envobj.jar
In the preceding command line, server-host represents the name of the server machine (that is, the machine on which the WLE (Java) Full System software has been installed), and port# represents the port number of the IIOP Server Listener/Handler of the server machine.
The prompt String? is displayed.
To remove the WLE (Java) software from your system, proceed as follows:
root or as a superuser.
The following prompt is displayed:
To terminate the uninstallation at any time
press the interrupt key,
typically <del>, <break>, or <ctrl+c>.
Location of existing BEA software installation [(default: /usr/local/wledir) ?,q]:
The following prompt is displayed:
Using /usr/local/wledir as the base directoryBEA WLE (Java)
The following uninstallable BEA software was detected:
14.2
Select the item you wish to remove [?,??,q]:
1 to remove the WLE (Java) software.
The following prompt is displayed:
"Are you sure you want to delete this software? [y,n,?,q]:"
The installation procedure displays the names of the files being removed from your system, as in the following example:
Deleting: ${TUXDIR}/samples/corba/simpapp_java/makefile.nt...
Deleting: ${TUXDIR}/samples/corba/simpapp_java/runme.cmd...
Deleting: ${TUXDIR}/samples/corba/simpapp_java/runme.ksh...
Deleting: ${TUXDIR}/samples/corba/simpapp_java/smakefile.nt...
Deleting: ${TUXDIR}/udataobj/java/jdbc/jdbcKona.jar...
Deleting: ${TUXDIR}/udataobj/java/jdk/m3.jar...
Deleting: ${TUXDIR}/udataobj/java/jdk/m3envobj.jar...
After the removal procedure is completed, the following message is displayed:
Uninstall successfully completed.