Eclipse + Java environment construction

Source: Internet
Author: User
Tags java se

From http://www.blogjava.net/kobe09/archive/2006/06/14/52756.html

 

1. the required software is as follows:

1. Java 2 SDK (Java Development Kit) -- JDK

Jdk1.5 is used here (jdk1.4 and above are recommended): http://java.sun.com/javase/downloads/index.html,

Java SE 6 beta

J2se 1, 5.0

J2se 1.4.2

J2se 1.3.1

 

Select the desired version from the list above for download.

2. Tomcat
I am using Tomcat 5.5 here (recommended version 5.0 or later),: http://tomcat.apache.org/

Servlet/jsp spec

Apache Tomcat version

2.4/2.0

5.5.17

2.3/1.2

4.1.31

2.2/1.1

3.3.2

Select the desired version from the list above for download.

3. Eclipse and language packs

See my other article "Eclipse 3.1.x localization process"
4. Tomcat plug-in
Here I am using Tomcat tomcatpluginv3.1.zip corresponding to eclipse3.1 (download before you need to check whether the plug-in is suitable for eclipse version),: http://www.sysdeo.com/sysdeo/eclipse/tomcatplugin

Version

File

Date

Comment

3.1 final

Tomcatpluginv31.zip

15 September 2005

Releasenotesv31.txt

Works with eclipse 3.0 and eclipse 3.1 (fix a problem with eclipse 3.1m6)

3.0

Tomcatpluginv3.zip

27 July 2004

Releasenotesv3.txt

Works with eclipse 3.0 and eclipse 2.1

2.1.1 Beta

Tomcatpluginv211beta.zip

1er August 2003

Releasenotesv211beta.txt

Works with eclipse 2.1 and eclipse 3.0 m2

 

 

5. lomboz plug-in or myeclipse plug-in

You can use the easy struts plug-in before eclipse3.0, but eclipse3.0 no longer supports the easy struts plug-in. Therefore, if you use eclipse3.0 or later, you can select the lomboz plug-in or myeclipse plug-in.

You can select lomboz or myeclipse based on your preferences.

However, myeclipse is not a free plug-in. We have a 30-day trial period. We can use the free version first. If myeclipse is supported, we 'd better use a genuine version. the following describes the lomboz plug-ins and myeclipse plug-ins.

 

(I)LombozPlug-ins

 

 

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

 

: Http://download.forge.objectweb.org/lomboz/

 

Now you only need to download one: lomboz-eclipse-EMF-GEF-Jem. It inherits both the emf environment and the lomboz plug-in, which is about 140 MB, here I use: lomboz-eclipse-emf-gef-jem-3.1RC2.zip

 

 

(Ii)MyeclipsePlug-ins

Install myeclipse4.1 (myeclipse is not free and has a 30-day validity period, so we will download a trial version first)

Download version: myeclipse enterprise workbench 4.1.1 GA for Windows 98/2000/XP (03/02/2006)
Address: http://www.myeclipseide.com/Downloads%2Bindex-req-viewsdownload-sid-10.html

 

Ii. Software Installation

1. Java installation

Run the executable file j2sdk-1_5_2_07-windows-i586-p.exe, configure environment variables after installation, and add the following environment variables to my computer-> properties-> advanced-> environment variables-> System Variables
Classpath, java_home:, path

2. tomcat installation

You can decompress the decompressed version directly, and then configure the environment variable atat_home. Pay attention to the two points during the installation. One is that after the installation, the Tomcat service can be started, however, you still need to configure tomcat_home. The second is to check whether the installation program registers the Tomcat service as a Windows Startup service. You need to check it in the "service, if this option is available, 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/If a normal kitten page appears, it should be okay

3. Install eclipse

Eclipse installation is simple. You only need to decompress the package and copy the eclipse directory to the drive letter you want to install. at startup, the system will automatically find the JVM.

For details about the installation and localization process, see "Eclipse 3.1.x localization process"

4. Tomcat plug-in Installation

Unzip tomcatpluginv3.1zip and copy the com. sysdeo. Eclipse. tomcat_3.1 folder to your eclipse/Plugins directory.

5. lomboz or myeclipse Installation

① Lomboz Installation

First, create a folder named lomboz under the eclipse installation directory.

Unzip the lomboz-eclipse-emf-gef-jem-3.1RC2 to the lomboz folder and take a look at my:

 


Then, use the links method to install the lomboz plug-in: Create a lomboz. Start (with any suffix) in the links folder.

② Install myeclipse


See my other article: "[original] My eclipse 4.1 (eclipse3.1x plug-in eclipse enterprise-level work platform) and myeclipse plug-in installation instructions"

 

Iii. Eclipse Configuration
1. Installed jres Configuration
Open the configuration page

If these plug-ins are successfully installed, the lomboz and tomcat options should be included in the list on the left. If not, check whether the preceding steps are correct. Click Java-> installed jres, and the following figure is displayed. For initial installation, only the first JRE is displayed, which is the default JRE installed on drive C, if multiple jdks are installed in the system, you 'd better create one. Click Add and select the JDK location you want to use. Then, it will automatically search for other parameters and click OK. After returning to the interface, do not forget to click the JDK you just added. Otherwise, it will be useless. Click OK to close the window.

2. tomcat configuration (For details, refer to my other article: "[original] My eclipse 4.1 (eclipse3.1x plug-in eclipse enterprise-level work platform) and myeclipse plug-in installation instructions)

Here, we mainly configure Tomcat parameters. Select tomcat version based on the tomcat version you have installed, find the Tomcat home directory, and enter it in Tomcat home. The following parameters are automatically configured, click Apply. Select "advanced" on the left, copy the main directory of Tomcat to Tomcat base, and click "Apply. Select JVM setting on the left, select the newly added JRE, click Apply, and click OK. In this way, you can. If three kitten icons appear when eclipse is started, the tomcat configuration is successful. See

 

 

 

 

3. lomboz/myeclipse Configuration

 

Basically, no configuration is required. If you choose File> New> other when starting eclipse, the list contains J2EE, EJB, web services, the lomboz is successfully installed. see (lomboz installation success mark ):

If myclipse is correctly installed and the "myeclipse" item is added to the menu bar when eclipse is started, the installation of myeclipse is successful.

Myeclipse is successfully installed.

 

Figure (lomboz installation success mark-more in the list: J2EE, EJB, web services, XML, etc)

So far, the Java Web development environment has been configured and set up.

 

**************************************** **************************

As shown in the preceding method, only lomboz is not successfully installed, and the link method is successfully installed.

 

Attachment plug-in link installation method:

From http://www.wangchao.net.cn/bbsdetail_73585.html

1. Install the Eclipse plug-in using links
Assume that the eclipse installation directory is D:/eclipse, and the plug-in directory to be installed is D:/eclipseplugins. Take lomboz, sysdeo eclipse Tomcat launcher plugin, and xmlbuddy as examples to illustrate how to install the Eclipse plug-in using links.
1. Install lomboz
Create the following directory structure in D:/eclipseplugins:
D:/eclipseplugins/lomboz/eclipse
Decompress the lomboz Installation File to this directory, which will contain a plugins directory, that is, the directory structure is as follows:
D:/eclipseplugins/lomboz/Eclipse/plugins
Create a file in the D:/Eclipse/links directory named lomboz. Link, edit the file, add the following content, and save it.
Path = D:/eclipseplugins/lomboz
Eclipse will go to the specified directory to find the eclipse/features directory and Eclipse/Plugins directory to see if there are legal functional components and (or) plug-ins. That is to say, the target directory must contain a/eclipse directory. If the attached feature and plug-in are found, the configuration is available during the runtime. If the linked file is added after the workspace is created, the additional feature and plug-in will be processed as new configuration changes.
If the eclipse/Plugins directory is already included in other compressed files after decompression, you do not need to create an eclipse directory.
2. Install sysdeo eclipse Tomcat launcher plugin
Decompress tomcatpluginv3.zip to the Directory D:/eclipseplugins/tomcatplugin/Eclipse/plugins.
Create a file under D:/Eclipse/links and name it tomcatplugin. Link. edit the file, add the following content, and save it.
Path = D:/eclipseplugins/tomcatplugin
3. Install xmlbuddy
Decompress the xmlbuddy installation file to the D:/eclipseplugins/xmlbuddy/Eclipse/Plugins directory.
Create a new file in D:/Eclipse/links named xmlbuddy. Link. edit the file, add the following content, and save it.
Path = D:/eclipseplugins/xmlbuddy
2. Plug-in management
Start eclipse and enable or disable the plug-in under help> Software Updates> Manage configuration.
Iii. Description
1. Plug-ins can be installed in multiple custom directories.
2. Multiple plug-ins can be installed in a custom directory.
3. The file name and extension name of The Link file can be any name, such as ddd.txt and myplugin.
4. In the link file, Path = the path of the plug-in directory must be separated by // or/
5. The link file can have multiple lines of Path = plug-in Directory, which corresponds to multiple custom plug-in directories. The path parameter of each line will take effect.
6. There can also be multiple link files in the links directory, and the path parameter in each link file will take effect.
7. The plug-in directory can use relative paths.
8. You can create a subdirectory in the links directory to transfer unused plug-ins to this subdirectory to accelerate eclipse startup.
9. If no plug-in is visible after installation, delete the configuration/org. Eclipse. Update/directory in the eclipse installation directory and restart eclipse.

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.