The J2EE Management software is part of an integrated package that consists of the following components:
j2eemgmt.nbmThe following sections describe the steps needed to download and install these components and run this module on a Linux system:
Download and Install the J2SE SDK and Sun ONE Studio Software
Complete the following steps to download and install the J2SE SDK and Sun ONE Studio 3.0, Community Edition software on a Red Hat Linux/Intel system:
Download the J2SE 1.3.1_02 or 1.3.1_03 SDK for Linux from the web site and install.
Install the Sun ONE Studio 3.0, Community Edition software for Linux. Download a copy from the Sun ONE Studio Web page and follow the installation instructions. Note that you will need to register to download Sun ONE Studio software from the Web page.
Note: The J2EE Management software should work with the J2SE 1.4.0 SDK and the Sun ONE Studio 4.0 software if you follow the instructions in Use the J2EE Management NetBeans Module with the Sun ONE Studio 4.0 Software. Our software has not been exhaustively tested with the Sun ONE Studio 4.0 software, but has been with the previously released J2SE 1.4.0 SDK/Sun ONE Studio 3.0, Community Edition cobundle.
Install the J2EE SDK 1.3.1_mgmt Software
Complete the following steps to download and install the J2EE SDK 1.3.1_mgmt software:
Set the environment variable JAVA_HOME to the directory where you installed the J2SE SDK software. For example, you could use the default bash shell to set JAVA_HOME as follows:
export JAVA_HOME=
install_path
where install_path is the directory where you installed J2SE. For example, install_path could be /jdk1.3.1.
Copy the zip file j2ee_mgmt-1_0-fr-ri-linux.zip into a temporary directory (for example, /tmp).
Change into the temporary directory.
Unzip the file j2ee_mgmt-1_0-fr-ri-linux.zip.
The directory j2eemgmt, which contains three directories ( appserver, doc, and tools) is created.
Change to the j2eemgmt/appserver directory.
Unzip the j2sdk1.3.1_mgmt.zip file. This installs the J2EE SDK 1.3.1_mgmt software.
In your shell environment, set the J2EE_HOME environment variable to the directory where you installed the J2EE SDK 1.3.1_mgmt software.
Start the Sun ONE Studio and Install the J2EE Management NetBeans Module
Complete the following steps to start the Sun ONE Studio software and install the J2EE Management NetBeans module:
Change to the $FORTE_INSTALL_DIR/bin directory, where FORTE_INSTALL_DIR is the directory into which you installed the Sun ONE Studio software. Invoke the following script to start the software:
runide.sh
Note that the first time you start the Sun ONE Studio software, you will be prompted to enter the name of a directory into which your Sun ONE Studio user files will be written. This directory is referred to as the FORTE_USER_DIR directory.
In the IDE, select Tools --> Update Center, and use the Wizard to complete the following steps:
Select the radio button " Install Manually Downloaded Modules (.nbm Files)".
Click the Next button.
Click the Add button.
Enter the location of the j2eemgmt.nbm file. The file is in the j2eemgmt/tools directory.
The NBM file is a NetBeans module that extends the basic functionality of the Sun ONE Studio IDE and adds support for J2EE Management.
Click the OK button.
Click the Next button in the Update Center Wizard's " Select Modules to Install" panel.
Click the Accept button in the License Agreement dialog that pops up.
Click the Next button in the Update Center Wizard's " Download Modules" panel.
Click on the checkbox labeled " JSR-77 & JSR-88 IDE Toolkit Module - version1.3.1 Not Signed".
Click on the Yes button in the dialog that pops up and asks " Do you really want to install an unsigned module?"
Click the Finish button in the Update Center Wizard's " View Certificates and Install Modules" panel.
At this point, the IDE will install the NetBeans module and automatically restart.
When you are prompted for the location of the installed J2EE Reference Implementation, either click on the Browse button and locate the J2EE SDK or enter the location in the field and press the OK button.
If you are using Sun ONE Studio 4.0, complete the steps in Use the J2EE Management NetBeans Module with the Sun ONE Studio 4.0 Software.
Choose Help Sets-> JSR77-JSR88 J2EE IDE Toolkit Software Help from the Help menu and run the three tutorials to learn how to use the Toolkit.
Note: If the location of your J2EE SDK 1.3.1_mgmt installation changes after you install the J2EE Management NetBeans module, you need to edit the file $FORTE_INSTALL_DIR/system/idetoolkit.cfg to point to the new location. The contents of the file look like this:
J2EE_HOME=
nstall_path
Change install_path to the new location where the J2EE SDK 1.3.1_mgmt application server software is installed.
Start the J2EE SDK 1.3.1_mgmt Application Server
Complete the following steps to start the J2EE SDK 1.3.1_mgmt application server:
JAVA_HOME to the directory where you installed the J2SE softwareJ2EE_HOME to the directory where you installed the J2EE SDK 1.3.1_mgmt software$J2EE_HOME/bin directory and then start the J2EE SDK 1.3.1_mgmt application server:
cd $J2EE_HOME/bin
j2ee -verbose
Use the J2EE Management NetBeans Module with the Sun ONE Studio 4.0 Software
If you installed the J2EE Management module with the Sun ONE Studio V4.0 software, you need to complete the following procedure:
Move the J2EEDeployAPIPlatforms directory from the $FORTE_INSTALL_DIR/system directory to the $FORTE_USER_DIR/system directory.
Create the ext directory under the $FORTE_USER_DIR/modules directory.
Move the ManagementClient.ear file from the $FORTE_INSTALL_DIR/modules/ext directory to the $FORTE_USER_DIR/modules/ext directory.
Move the j2ee_samples directory from the $FORTE_INSTALL_DIR/sampledir directory to the $FORTE_USER_DIR/sampledir directory.
Restart the Sun ONE Studio software.
You will now be able to work with the J2EE Management Reference Implementation.