Eclipse uses and installs plug-ins

Source: Internet
Author: User
Tags svn tomcat server java se

First, JDK

1. Download

The first thing to download is the latest version of the JDK. We can download it on Sun's official website: http://java.sun.com.
If you feel more trouble can be downloaded to the script home website, http://www.jb51.net/softs/75724.html

After entering the official website, select Download-java SE

Click the Download button at the back of the Java SE 6 Update Beta and select JDK 6 on the next page.

Enter the download option, our operating platform is Windows XP, hooked on the protocol, press continue to continue to the next step.

Click on the jdk-6u10-beta-windows.i586-p.exe under the words "Windows Offline installation (Win offline installation package) directly.

Once the download is complete, you are ready to proceed to the next installation.

Run the jdk-6u10-beta-windows-i586-p.exe you just downloaded, and follow the instructions.

2. Install the JDK, the installation process can customize the installation directory and other information, such as we choose the installation directory for D:\java\jdk1.5.0_08;

( Note: JDK and JRE are generally the same directory)

(Installation JDK: install JDK Two installation prompts appear during the installation directory installation process. The first time is to install the JDK, the second is to install the JRE,

(1) Install JDK Optional directory simply change the default installation directory \java the directory before

(2) Install jre→ change →\java before directory and install JDK directory is the same )

3. computer → properties → advanced system settings → advanced → environment variables

4. in "System Variables", set 3 properties, Java_home,path,classpath (case does not matter), if already exist then click "Edit", do not exist then click "New";

5.java_home Specifies the JDK installation path, which is the path D:\java\jdk1.5.0_08 that was selected at the time of installation, which includes folders such as LIB,BIN,JRE (this variable is best set because the variable is required to run tomcat,eclipse later);

Path allows the system to identify JAVA commands under any path, set to:%java_home%\bin;%java_home%\jre\bin

(Note that the original path of the variable value at the end of there is no; number, if not, first enter; number and then enter the above code)

CLASSPATH for Java loading class or lib paths, only the class is in Classpath, the Java command is recognized, set to:

.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar ( to Add. Indicates the current path)

%java_home% is to refer to the previously specified java_home;

6."start"->; " Run, type "cmd";

7. Type the command "Java-version", "Java", "Javac" several commands, appear screen, indicating that the environment variable configuration is successful;

8.eclipse Configuring the JRE

Windows-Preference->java, install JREs, add, Standard VM, set up the appropriate JRE

1. Click the Window drop-down menu in the Eclipse menu bar to select preference

2. Click Preference to enter the Configuration Item Management dialog box, expand Java, and then select installed JREs, the JDK configuration item appears in the right window.

3. Click the Add button to enter the JDK selection dialog box

4, here will be asked to select a JRE version added to the workspace, we select the third standard VM, click the "next>" button to enter the specific JRE selected page.

5, click the "Directory" button to enter the JDK Folder selection dialog box, find your JDK extract directory, select, click "OK" to

6. When selected, go back to the JDK that automatically returns to eclipse Select the dialog box, the selected JDK related information will be filled in the dialog box, click "Finish". Here I have a red fork, because the JDK I selected is already bound by Eclipse. There is no need to repeat the binding.

Additional: Eclipse Download official website:www.eclipse.org i downloaded:eclipse IDE Forjava EE developers Mars version ( The eclipse version of the SDK does not have the Server option, you have to download the Java EE version of Eclipse)

Eclipse corresponds to the JDK version that needs to be installed

Eclipse 4.6 (Neon)

is scheduled for release on June 22, 2016.

Consider using the Installer. Please see 6Steps to Install Eclipse.

A Java 8 jre/jdk is required to run all Neon packages BasedOn Eclipse 4.6. The reasoning behind requiring Java 8 is discussed here.

Eclipse 4.5 (Mars)

Eclipse 4.5 (Mars) was released on June 24,2015.

Consider using the new installer! See6 Steps to Install Eclipse.

A Java 7 JRE/JDK is required for all Mars package downloadsbased on Eclipse 4.5. Information concerning tested configurations for Eclipse4.5 are providedhere.

Eclipse 4.4 (Luna)

Eclipse 4.4 (Luna) was released on June 25,2014.

A Java 7 JRE/JDK is required for most of the Luna packagedownloads based on Eclipse 4.4. Information concerning tested Configurationsfor Eclipse 4.4 is provided here.

Eclipse 4.3 (Kepler)

Eclipse 4.3 (Kepler) was released in June2013.

A Java 6 JRE/JDK is recommended for Eclipse 4.3. More information concerning tested configurations for Eclipse 4.3 are provided here.

Second, Jetty

Open Eclipse, click menu Help->eclipse Marketplace, enter jetty in the box after find, select 2nd to install.

Third, Maven

(i) Maven installation and configuration

1. First download maven http://mave , download it, unzip it, find a path to put it in

2. Configure the MAVEN environment variable: New system variable: M2_home (maven_home): MAVEN installation path; path:%m2_home%\bin;

Command: Mvn-v test

Because MAVEN relies on the Java Runtime environment, you need to configure the Java Runtime Environment before using MAVEN. Download and install the JDK, configure the JDK environment variable java_home, or MAVEN will not be able to use

3. After successful configuration, start configuring Maven in Eclipse, click Eclipse Menu bar help->eclipse Marketplace search keyword maven to plugin maven integration for Eclipse and click Install, such as:

4. When the installation is complete, click Restart Eclipse

5. After rebooting, in order for the MAVEN plugin installed in eclipse to be the same as the one installed in Windows, you need to reposition Maven in Eclipse, click Maven, Preference, window, installation, add to set

6. Click on user settings in the users configuration interface, there are two settings boxes, one is the global settings(configuration information) and the user settings (Set only for this workspace). According to their actual situation to set the corresponding settings file can be .

Click Browe on the right side of the user settings . Browse button to locate the settings.xml file under the native Maven tool, configure the user settings file and click Update Settings( If the project has a MAVEN project updated automatically)- -Apply app - -OK to complete the configuration.

7. Modify the maven Repository storage location:

Locate the settings.xml configuration file under maven under Conf and modify the Maven repository storage location I was in D:\java\apache-maven-3.3.9\. Conf\settings.xml

The Maven repository defaults to the. M2 folder under the local user's Temp folder under Repository, mine is under the C:\Users\Administrator\.m2\repository directory, Now let's modify to assign it to our own path, I'm now going to assign the repository to the D:\java\Repositories\Maven directory, just open the local repository that was logged off, and write the corresponding path value inside:

OK, first to experience maven, knock in cmd and enter to execute:mvn help:system

That's when Maven downloads a whole bunch of stuff from the remote repository, it's okay, let it download, and sooner or later it's going to be downloaded,

(ii) use Eclipse to check out the project from SVN and use maven import.

Open the SVN repository research, right-click, New--"repository location, then enter the SVN address, follow the instructions."

Right-click the item you want to check out-"Check out as--" as a project in the workspace check out-"next--" to see if you need add to working sets, you can add to the existing, you can also create a new. Then turn it into a MAVEN project.

There are two ways to convert to a MAVEN project at this point.

1. Directly Click on the project, right-select Configure, select Convert to Maven project

2. Delete the project in Project Explorer and re-import the MAVEN project from the workspace.

Here's how:

(1) First delete the item that has just been checked out from SVN (do not remove the corresponding project from the workspace, this action simply removes the display of the item from Project Explorer

Right-click Delete and select OK (Note that the Delete project contents on the pop-up box cannot be selected, or the item you just checked out is deleted from the workspace folder)

(2) and then re-import the MAVEN project.

Right-click Import in the Project Explorer blank area, choose Importing Maven, select extisting maven projects, select the MAVEN project you just checked out of the workspace, and tap OK to import into eclipse.

Finally, after the conversion succeeds, an M-word icon appears to the left of the project and has a yellow svn icon. At this point, the MAVEN project was successfully checked out from SVN.

Four, Svn

1. Installation

Open Eclipse, find Marketplace in the Help menu, and click Enter.

In the Search box find, enter Subclipse, click on the right of the Go button query, Subclipse found, click on the lower right corner of the button install installation.

Select some files that need to be installed, choose all by default, and click Next to do the next step.

Agree to the license agreement, tick "I accept the terms of the license agreements", then click Finish to complete.

The installation process shows that some hints may appear during the installation process, so you can agree.

Subclipse you need to restart eclipse after the installation is complete.

Subclipse Usage (subclipse usage report) is optional and free to decide. usually not checked. This way, even if the installation is complete.

2. SVN Resource Library

After the Subclipse installation is complete, you can use SVN. In the Window menu, execute: Show View--and other.

Retrieve the SVN keyword in the pop-Up Show view dialog box to quickly find the SVN repository, select, OK.

The SVN repository appears in the Problem view window. Note: The problem view is what we often call "backstage," which is used to display code or project configuration errors, and double-click the error entry to quickly locate the code.

Right-click the empty space in the SVN repository window and create a new repository location.

Add a new SVN repository, enter the correct server address in location "locations", and then finish.

Enter your username and password and click "Save Password" to log in more quickly next time.

3. After creating a new SNV repository location and logging in the username password, how to modify the user name and password:

C:\Users\Administrator\AppData\Roaming\Subversion: Delete the auth file inside , then log in again to enter C:\Users\Administrator\AppData\Roaming\Subversion: Delete The inside of the auth file , so that after re-login input can

V.Eclipse Configuration

(i) If you start the Tomcat times error:The specified JRE installation does not exist cannot find the JRE

Then: window-->preferences-->server, Runtime environment-->edit-->jre

Then select the JRE environment you want to use , for example:D:\java\java1.7.0_80\jre7 save is OK

(ii) Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (Default-compile) On Project Document-core:compilation failure

[ERROR] No compiler is provided in this environment. Perhaps is running on a JRE rather than a JDK?

First look at the JAVA configuration environment variables java_home and window-->preferences-->java-->installed jres-->edit JRE The path of the home configuration is consistent (must be consistent), and then View window-->preferences-->server---Environment-->edit-->JRE C6>JRE environment selection is correct,

(iii ) modify the Tomcat port number:server.xml file

8080 is the default port number for the Tomcat server. We can change it by modifying the master configuration file Server.xml in the Conf directory of the Tomcat server . Open the server.xml file with Notepad and find the following : This is the reference: <connector port= "8080" maxhttpheadersize= "8192" maxthreads= "" "minsparethreads=" maxsparethreads= "75" Enablelookups= "false" redirectport= "8443" acceptcount= "" connectiontimeout= "20000" disableuploadtimeout= "true"/ > Change the port= "8080" to a new port number, such as changing "8080" to "9080".

Eclipse uses and installs plug-ins

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.