Set Lomboz3.0.1 in Eclipse3.0.1

xiaoxiao2021-03-06  24

1: Basic environment and requirements

Eclipse 3.01

Tomcat 4.1.30 can also be other versions, but it is preferably 4.0 or more.

J2SDK 1.4.2

Lomboz301

EMF-SDO-Runtime-2.0.1

Java and Tomcat must be installed in advance, and Tomcat is not launched separately. There is no problem. At the same time, add java_home / jre / lib / rt.jar to the classpath.

2: Pre-preparation

First extract each file in EMF-SDO-Runtime-2.0.1 and Lomboz301 to the Plugins or Features directory corresponding to Eclipse. Start Eclipse, if you don't see Lomboz, you will exit Eclipse, then delete the org.eclipse.Update folder in the Eclipse directory Configuration, and then restart Eclipse.

3: Configure Java

Click on Windows-> Preferences in Eclipse, select Java-> Installed Jres in the window, which can be seen in the window on the window, and the name is J2RE1.4.2_04. We click here to click on the "add" button to add a JRE, enter: Enter: in the dialog that appears:

JRE TYPE: STANDARD VM

JRE NAME: You can enter a name at will

JRE Home Directory: Select your JDK installation directory, which is better than your JDK f: / j2sdk /, then here is the F: / J2SDK / this directory.

Others can have, click OK, add a JRE.

After you have changed it back to the java-> build path in the Preferences dialog, click Build Path, in the panel of the right, we select this Folders below below, and two Source Folder Name and Output Folder Name We do not modify, save as system default, but the following AS JRE LIBRARY USE: We have to choose this for JRE_LIB Variable, cannot be the default JRE Container, and finally click on the Apply button below. Don't forget this step, otherwise it's all white.

4: Set lomboz

Choose Lomboz in the Preferences window, then select the JDK Tools.jar in the right panel to install the JDK, you can install the JDK, you can do it in the java_home / lib / directory, you must not make a mistake, if you JDK is installed in F: / J2SDK / below, then the value here should be f: /j2sdk/lib/tools.jar, it is not right. Other maintenance is the default.

Then the Lomboz is expanded, the key to set is the server definitions, and the other two Code Generation and JSP Editor may. After expanding Lomboz Server Definitions, select Apache Tomcat V4.1.0 in Server Types (this is set according to the configuration on my machine, if you installed other versions of Tomcat, you will choose the corresponding option), The main setting is as follows:

PROPERTIES

Application Server Directory: This is my Tomcat 4.1.30 installation directory, I am put below f: / tomcat, so it's value f: / tomcat

Address: 127.0.0.1

Port: 80 (because I changed 8080 in Tomcat to 80, so this is 80, which is subject to your Tomcat's listening port)

ClassPath variable name: tomcat_home (can modify other strings)

ClassPath Variable: f: / tomcat (Tomcat installation directory)

Then click the Apply button.

Server ClassPath:

JDK_TOOLS

$ {classpathvariablename} /bin/bootstrap.jar

$ {classpathvariablename} /common/servlet.jar

$ {classpathvariablename} /common/jasper-runtime.jar

Then click the Apply button.

Client ClassPath:

It is empty here, nothing.

Project ClassPath:

JDK_TOOLS

$ {classpathvariablename} /bin/bootstrap.jar

$ {classpathvariablename} /common/servlet.jar

$ {classpathvariablename} /common/jasper-runtime.jar

Then click the Apply button.

The Server ClassPath: and Project ClassPath: I am setting the same.

5: Modify the file

Open Eclipse_home / plugins / com.objectlearn.jdt.j2ee_3.0.1 / servers, for example I installed Tomcat is version 4.1.30, then turn Tomcat410.server this file, put the inside -djava .endorsed.dirs = "$ {serverrootdirectory} / bin; $ {serverrootdirectory} / common / endorse

Change to

-Djava.endorsed.dirs = "$ {serverrootdirectory} / common / endorsed"

There are two places, they must be modified. After the modification, save, exit, restart Eclipse, this step is very important, must do, do you want to start Tomcat in Lomboz, there will be a lot of Ming Ming's unusual

6: Turn out the Lomboz menu

Start Eclipse, then click Windows-> Customize Perspective, first select the Lomboz J2EE Wizards in the left panel in the SHORTCUTS page in the dialog that appears, there will be many options in the right panel on the right, and they also take them in front of them. Pair of hooks.

Then change the value of the Submenus: in this Shortcuts panel, select the show view, then select Lomboz J2EE in the left side of the panel that appears, and also put it on the box in front of it.

Finally, the panel in the Customize Perspective dialog is replaced to Commands this page:

Selecting Lomboz Actions in Commands on this page while also putting them in front of them.

All settings are completed.

Thus, after everything, Eclipse and Lomboz's environment are configured, you can develop a variety of programs.

Individual experience:

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

New Post(0)