J2EE installation and configuration

xiaoxiao2021-03-05  27

J2EE

Installation report

One.

Install Java 2 SDK, Standard Edition (J2SE

TM SDK), V1.4.2_01

:

1. Download J2SDK-1_4_2_07-Windows-i586-P.exe, Windows-i586-P.EXE, from http://java.sun.com/j2se/1.4.2.

2. Double-click the installation, the default installation directory is C: / J2SDK1.4.2

3. Set system environment variables

a. Right-click on "My Computer" on the desktop, select "Properties", select "Advanced" tab in the properties panel that appears, click "Environment Variable", in the "System Variable", the variable is java_home And the variable value is

C: / J2SDK1.4.2, click OK.

b.

% Java_home% / bin directory is added to the PATH variable

c. Find the classpath variable in "System Variable". If it does not find it, select "New", the variable is called "classpath", the variable value is

% Java_home% / lib / Tools.jar;

two.

Install J2EE

TM 1.4 Application Server

From

http://java.sun.com/j2ee/1.4/download.html#sdk Download J2EE 1.4 SDK

2. The installation process is selected "Add Bin Directory to Path", so you don't have to add it again.

3. Set the environment variable, the variable is J2EE_HOME, the variable value is x: / sun / appserver (x is the driver installed J2EE)

4. Start J2EE Server:

a. From the "Start" menu, choose "Programs" -> Sun Microsystems -> J2EE 1.4 SDK

-> Start Default Server (launching the default server)

b. Next, a DOS window will appear, display the following information:

Starting Domain Domain1, please Wait.

Log redirected to

...

When the startup is completed, the following information will appear:

Domain domain1 start.

..

c. You can now access

Http: // localhost: 8080 If you can see a start page, proof the J2EE server is running

The following is how to install an example (x: /s/appserver/sample/sample/boeprints/adventure1.0) provided by deployment J2EE1.4SDK, describe how to run this example (hereinafter

Represents this example of this example)

1. Start the PointBase database

Open the DOS command window, enter the following command

CD% J2EE_HOME% / POINTBASE / TOOLS / SERVEROPTION

StartServer.bat

2.

Start J2EE server

Enter the following command under the command line

Asadmin start-domain --domain domain1

3.

Run Asant command, it will install and configure data sources with build.xml files

The command is as follows:

CD / src

Asant setup

4. Run Asant command, it will deploy this application with build.xml files

The command is as follows:

CD / src

Asant Deploy-Apps

5.

Next, you can enter in the browser address bar.

Http: // localhost: 8080 / ab To access the consumer page, click on the "Start Building An Adventure" link.

转载请注明原文地址:https://www.9cbs.com/read-32737.html

New Post(0)