Use eclipse to develop J2EE applications-(download, install, and configure)

Source: Internet
Author: User
Tags jboss server

----IntegrationEclipse, lomboz, and JBoss

 

Eclipse is an excellent integrated development environment. After a period of development and improvement, the open source code project supported by IBM has become familiar to Java developers. The emergence of eclipse provides Java developers with the opportunity to use powerful Java IDE for free. By integrating a large number of in INS, eclipse functions can be continuously expanded to support various applications.

Lomboz is a free eclipse plugin. It integrates many Java application servers, J2EE components, and Web application development into eclipse, helping Java developers build, test, and deploy J2EE applications using eclipse.

JBoss is an open source code and powerful Java application server. It is currently the most popular Java application server for Java developers. JBoss was named as the best application server in 2002 by Java World editors. So far, the number of downloads in 2003 has exceeded 1.5 million.

1. Download, install, and configure

1. Download and install eclipse

Install JDK first. You can download and install the latest version on Sun's website.

Then go to www.eclipse.org to download the latest version of Eclipse, Which is 2.1. After downloading, decompress the package to the desired directory, such as D:/eclipse, and directly run eclipse.exe. The JDK is automatically searched for and configured during the first run, then enter the main interface of Eclipse. The basic usage of eclipse is described in detail on developerworks, the eclipse website, and the eclipse random document.

2. Download and install JBoss

The latest version of JBoss is 3.2.1, but I think there are some problems with this version. Some jar packages cannot be found when starting the server, resulting in warn and error. Therefore, we recommend you download version 3.0.7 or JBoss 3.0.7 integrated with Tomcat 4.1.24.

Download and decompress the package. Assume that jboss_home is the main directory of JBoss and run jboss_home/bin/run. BAT to start the JBoss server. Generally, it starts up in about 1 minute.

3. Download, install, and configure lomboz

The latest lomboz version is 2.1. Assume that the main directory of eclipse is eclipse_home. After downloading it, decompress it to the eclipse_home/plugins folder. In this way, a COM. objectlearn. jdt. j2EE folder.

Start eclipse and the Customize perspective dialog box will automatically appear. If the dialog box does not appear, you can also display the dialog box through the menu "window-> customize perspective", as shown in:

 

 

Expand file-> New and select all lomboz-related options;

Expand window-> show view and select lomboz J2EE view;

Expand other and select lomboz actions.

OK.

Configure lomboz as follows:

First, open the Properties dialog box and make sure the settings in Java-> new project are as follows:

 

 

In the lomboz attribute, make sure the following settings are met:

 

 

Finally, set the server attributes.

Lomboz pre-defines some common Java Server settings. These configuration files are stored in eclipse_home/plugins/COM. objectlearn. jdt. under the J2EE/servers folder, you can use a text editor to manually modify it (unless the server you are using is not in the default lomboz server, otherwise I do not recommend this ), you can also set it in the eclipse Properties dialog box. The setting process is very simple, as shown in:

 

 

 

Remember to click Apply after each modification.

It is the setting under the properties label, and the classpath label generally does not need to be changed (Note: if you have not listened to the advice from the beginning of my article, you have used jboss3.2.0 or later versions, you may need to manually add an extra jar package, which is physical and troublesome. I don't know if this is a problem with JBoss. I will mention the specific operations below ).

The above three steps are used to complete lomboz's support for J2EE development and JBoss configuration. You can go to the second part of the article "using eclipse to develop Web Applications.

Note:

A. If the server is not in the default server column;

Create a file with the suffix server in the eclipse_home/plugins/COM. objectlearn. jdt. J2EE/servers folder, and edit the Server File in a text editor based on the existing Server File. After a new server file is created, you can also set it on the lomboz attribute page.

B. If jboss3.2.0 is used.

Open Window> preferences> lomboz> serverdefinitions, select your server, select the classpath tag, and add the following jar package to the server Library:

Jboss_home/lib/concurrent. Jar

 

Jboss_home/lib/boss-system.jar

 

Jboss_home/Server/default/lib/JBoss. Jar

 

Jboss_home/Server/default/lib/jpl-pattern.jar

 

Jboss_home/Server/default/lib/jpl-util.jar

 

Jboss_home/Server/default/lib/jnpserver. Jar

 

Jboss_home/Server/default/lib/jboss-transaction.jar

All content in my jboss320.server file is displayed at the end of this article.

 

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.