Installation and configuration of eclipse + Tomcat + lomboz

Source: Internet
Author: User
1. Software Download:

1. Java

Jdk1.4.2 is used here.

: Http://dlc.sun.com/jdk/j2sdk-4154_2_07-windows-i586-p.exe;

2. Tomcat

Here, the tomcat version is 5.0, and the installation version or decompression version is acceptable.

: Http://apache.linuxforum.net/dist/jakarta/tomcat-5/v5.0.28/bin/jakarta-t omcat-5.0.28.exe

3. Tomcat plug-in

Tomcatpluginv3.zip (check whether the plug-in is applicable to the eclipse version before downloading)

: Http://www.sysdeo.com/eclipse/tomcatPluginV3.zip

4. Eclipse

Develop ide eclipse-SDK-3.0.1-win32.zip

: Http://sunsite.informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.0.1-200409161125/download. php? Dropfileappseclipse-sdk-3.0.1-win32.zip Language Pack NLpack-eclipse-SDK-3.0.x-win32.zip

: Http://sunsite.informatik.rwth-aachen.de/eclipse/downloads/drops/L-3.0.1 _ translations-200409161125/NLpack-eclipse-SDK-3.0.x-win32.zip

5. lomboz plug-in

The lomboz plug-in requires two parts to be downloaded: one is the EMF environment and the other is the lomboz plug-in.

: Http://eclipse.mirrors.tds.net/tools/emf/downloads/drops/2.0.1/R20040917 1617/emf-sdo-runtime-2.0.1.zip

: Http://download.forge.objectweb.org/lomboz/org.objectweb.lomboz_3.0.1.N2 0050106.zip

Ii. software installation:

1. Java installation

Run the executable file j2sdk-00004_2_07-windows-i586-p.exe. After installation, configure the environment variables. In my computer, choose Properties> advanced> environment variables> system variables to add the following environment variables.

Classpath: % java_home % \ Lib; % tomcat_home % \ common \ Lib

Java_home: C: \ j2sdk1.4.2

Path: % SystemRoot % \ system32; % SystemRoot % \ system32 \ WBEM; C: \ Program Files \ ATI Technologies \ ATI Control Panel; % java_home % \ bin; % tomcat_home % \ bin

2. tomcat installation

You can decompress the decompressed version directly, and then configure the environment variable tomcat_home = c: \ Program Files \ Apache Software Foundation \ Tomcat 5.0. Pay attention to the two points when installing the version, one is that the Tomcat service can be started after installation, but you still need to configure atat_home; the other is to check the installation Program If you want to register the Tomcat service as a Windows Startup service, you need to check it in "service". If you have this option, set it to manual start and stop the service first.

[Test]: run the startup. Bat command. After the service is started normally, enter http: // localhost: 8080/In the IE browser. If a normal page appears, the problem should be solved.

3. Install eclipse

Eclipse installation is very simple. You only need to decompress the package and copy the eclipse directory to the drive letter. at startup, the system will automatically find the JVM. Of course, you can configure it later, however, it seems that JDK must be installed first. I put it in D: \ eclipse.

Decompress the idea and copy the com. sysdeo. Eclipse. tomcat_3.0.0 folder to the D: \ eclipse \ plugins EMF plug-in and lomboz plug-in. Then copy the feature and plugins directories to the D: \ eclipse \ directory.

Iii. Eclipse Configuration

Configure Java

In eclipse, click Windows> preferences and select Java> installed jres in the displayed window. In this case, you can see a project named j2re1.4.2 _ 04 In the window on the right. Click "add" on the right to add a JRE. In the displayed dialog box, enter:


JRE type: Standard VM
JRE name: You can enter a name at will.
JRE Home Directory: select your JDK installation directory,
For example, if your JDK is installed in F: \ j2sdk \,
Then, select the F: \ j2sdk \ directory.
You can ignore other items. Click OK to add a JRE.

After modification, return to the Java-> build path option in the preferences dialog box. Click build path and select the Folders option under source and output folder in the right pane, we do not modify the values of the two source folder names and Output Folder names and save them as the default values of the system. However, the following as JRE library use: Select jre_lib variable, cannot be the default JRE container. Click the Apply button below. Do not forget this step. Otherwise, we will do everything in white.

4. Set lomboz

Select lomboz In the preferences window, and then set JDK tools in the right panel. after installing JDK for jar, select Tools under the java_home \ Lib \ directory. the jar file is okay. Do not make a mistake. If your JDK is installed under F: \ j2sdk \, the value here should be F: \ j2sdk \ Lib \ tools. jar. None of them are correct. Others are maintained by default.

Next, expand the lomboz item. The key to setting this item is server definitions. The other two items of code generation and JSP editor can be ignored.

Expand server definitions of lomboz and select Apache Tomcat v4.1.0 in server types (this is set according to the configuration on my machine. If you install Tomcat of other versions, you need to select the corresponding option). The main settings are as follows:

Properties

Application Server Directory: This is the installation directory of my tomcat 4.1.30. I installed it under F: \ tomcat, so its value is F:/tomcat.

Address: 127.0.0.1

Port: 80 (because I changed 8080 to 80 in Tomcat, so here is 80, based on your Tomcat listening port)

Classpath variable name: tomcat_home (can be modified to another string)

Classpath variable: F:/tomcat (tomcat installation directory)

Click Apply.

Server classpath:

Jdk_tools
$ {Classpathvariablename}/bin/Bootstrap. Jar
$ {Classpathvariablename}/common/servlet. Jar
$ {Classpathvariablename}/common/jasper-runtime.jar

Click Apply.

Client classpath: It is null and there is nothing.

Project classpath:

Jdk_tools
$ {Classpathvariablename}/bin/Bootstrap. Jar
$ {Classpathvariablename}/common/servlet. Jar
$ {Classpathvariablename}/common/jasper-runtime.jar

Click Apply.

Here, the server classpath: And project classpath: I set the same.

Note: (the above configuration of server classpath and project classpath may vary with the tomcat version *. jar files are also located in different locations. If atat5.x is used, $ {classpathvariablename}/common/servlet. jar with $ {classpathvariablename}/common/jasper-runtime.jar should be $ {classpathvariablename}/common/lib/servlet-api.jar with $ {classpathvariablename}/common/lib/jasper-runtime.jar, ratio 4. version X has an additional lib directory .)

5. modify files

Open the corresponding Server File under eclipse_home \ plugins \ com. objectlearn. jdt. j2ee_3.0.1 \ servers. For example, if tomcat version 4.1.30 is installed, open the tomcat410.server file and

-Djava. endorsed. dirs = "$
{
Serverrootdirectory}/bin;
$
{
Serverrootdirectory
}
/Common/endorsed"

Changed:

-Djava. endorsed. dirs = "$
{
Serverrootdirectory
}
/Common/endorsed"

There are two changes. Save the changes, exit, and restart eclipse. This step is very important and must be done, otherwise, many unknown exceptions will be reproduced when you start Tomcat in lomboz.

Note: If you use atat5.x, you may not need to modify the above information.

6. Call out various lomboz menus

Start eclipse, and then click windows-> mimize perspective. In the displayed dialog box, select lomboz J2EE wizards in the left-side pane. Many options will appear in the right-side pane, at the same time, they are also checked.

Then, in the shortcuts panel, change the value of submenus:, select Show view, select lomboz J2EE on the left of the displayed panel, and check the box in front of it.

Finally, replace the panel in the Customize perspective dialog box to the commands page. On the commands page, select lomboz actions and check the items in front of them. All settings are complete.

After all this is done, the eclipse and lomboz environments are configured, And you can develop various programs.

Personal experience:

Some machines may not be able to do this in step 1, because there are different Tomcat versions, but some machines must be changed. Otherwise, Tomcat cannot be started normally. I personally use tomcat4.1.30 because I think this version is relatively small and runs faster, much faster than version 5.0 or later, it also needs to be relatively stable (personal opinion, does not represent others). In addition, for eclipse 3.0, you can refer to the above instructions for configuration, which basically works, there is no big problem.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.