[J2EE Learning Notes 01] Configuration Standard J2EE Development Environment

xiaoxiao2021-03-05  24

First of all, what I want to say is that it is not any tutorial article. In the future, I will inspire and help. At the same time, I can guide some of my beginners, not to bend.

Learn to develop J2EE, first to configure a development environment. This is similar to the development environment that I just configure JDK developed when I started learning Java.

Program file required

If you study in a Windows environment, we need the following two files:

File Name Size 1J2SDK-1_4_0-RC-WIN.EXE35.3 MB (37,050,349 bytes) 2J2SDKEE-1_3_1-Win.exe16.5 MB (17, 306, 836 bytes)

(Table 1-1)

The J2SDK version is only 1.3.1_02, and J2SDKee now has a 1.4beta version. In this article, ICECH still uses J2SDK1.4 (http://java.sun.com/j2se/downloads.html) and J2SDKee1.3.1 (http://java.sun.com/j2ee/download.html) Do exercise. Both files can be downloaded at http://java.sun.com.

Install J2SDK and J2SDKee

If you don't say it, ICECH installs J2SDK and J2SDKEE in the C: / JDK and C: / J2EE directory. If you have previously installed other versions of J2SDK, first Uninstall is installed.

Configure system environment

Configuring J2EE is very simple, if you are in the Windows2000 platform, you only need to set up the following table:

Variable Name Variable Variable Description 1java_Homec: / JDK Your Java 2 SDK installation directory 2J2EE_HOMEC: / J2EE Your J2EE SDK installation directory 3PathClassc: /j2ee/lib/j2ee.jar%j2ee_home%/Lib/j2ee.jar4pathc: / jdk / bin; c: / j2ee / bin;

(Table 1-2)

If we are more convenient in future exercises, we can set it in the following way:

Variable name variable value 1java_homec: / jdk2j2ee_homec: / j2ee3pathclassc: /jdk/lib/tools.jar; c: /jdk/jre/jdk/jaws.jar; c: /jdk/lib/dt.jar; c: / j2ee / Lib / EJB10Deployment.jar; c: /j2ee/lib/j2ee.jar; c: /j2ee/lib/jhall.jar; c: /j2ee/lib/j2eetools.jar; C: / J2EE / LIB; 4PATHC: / JDK / bin; c: / j2ee / bin;

(Table 1-3)

Run J2EE

Such J2EE's environment is set up, but we still don't know if set is correct, then we will try J2EE.

Run under the DOS window

C: /> J2EE /?

The display effect is correct.

Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp.C: /> j2ee / java 2 Enterprise Edition ServerOptions:? -Verbose Redirect all logging output to the current shell -help Print this help message. . -Stop stop the j2ee server.c: />

If it is displayed

C: /> J2EE

Error: Set J2EE_HOME BEFORE RUNNING THIS Script.

C: /> J2EE

Error: Set Java_Home Before Running this Script.

Note The environment variable of J2EE or JDK in front is not configured.

If we are displayed norm, we can run J2EE.

Run under the DOS window

C: /> J2EE -VERBOSE

If the run is smooth, you will see the prompts of J2EE Server Startup Complete in the DOS window.

Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp.C: /> j2ee -verboseJ2EE server listen port: 1050Naming service started: 1050Binding DataSource, name = jdbc / EstoreDB, url = jdbc: cloudscape: rmi: CloudscapeDB; create = trueBinding DataSource, name = jdbc / DB1, url = jdbc: cloudscape: rmi: CloudscapeDB; create = trueBinding DataSource, name = jdbc / InventoryDB, url = jdbc: cloudscape: rmi: CloudscapeDB; create = trueBinding DataSource , name = jdbc / DB2, url = jdbc: cloudscape: rmi: CloudscapeDB; create = trueBinding DataSource, name = jdbc / Cloudscape, url = jdbc: cloudscape: rmi: CloudscapeDB; create = trueBinding DataSource, name = jdbc / XACloudscape, url = jdbc / XACloudscape__xaBinding DataSource, name = jdbc / XACloudscape__xa, dataSource = COM.cloudscape.core.RemoteXaDataSource@b301f2Starting JMS service ... Initialization complete - waiting for client requestsBinding: Binding: Binding: Binding: Binding: Binding: Starting web service at port: 8000Starting secure web service at port: 7000J2EE SDK / 1.3.1Starting web service at port: 9191J2EE SDK / 1.3.1J2EE server startup complete this time, open the browser, the address bar. Enter the address http: // localhost: 8000 /, you will see the J2EE's home page (Figure), indicating that you have launched the J2EE service.

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

New Post(0)