Jdk+myeclipse+svn

Source: Internet
Author: User
Tags svn java se

First, JDK1, jdk download

A, landing on the Oracle website: www.oracle.com

B, navigation bar: Country, select "China", switch to the Chinese site, click "Download".

C, after entering the download page, under "All Download Information", select "Java" and go to the Download index page.

D, in the download index page, click on the "Java" directory, click "Java SE" to enter the Java SE download page.

E, go to the Java SE download page at the bottom of the "Java Archive", click "Download", select the appropriate version to download.

F, take Java SE7 as an example to explain the meaning of the JDK version name:

JDK: File name

Jdk-7: JDK version 7.0

Version jdk-7u80:jdk7.80, which is the 80th update of JDK 7.0.

Linux, Solaris, Windows: the corresponding system version

x64, i586: Processor type. The x64 is a 64-bit processor and the i586 is a 32-bit processor.

2. JDK Installation

Download the JDK file as an executable file and click Install directly.

3. Configure Environment variables

Under Windows System: Desktop-The computer right-click Property goes to Control Panel \ System and security \ System. Tap advanced system settings to enter the advanced System settings menu. Click Environment variables to configure the environment variables.

A, the Environment variable configuration page, which is the user variable, that is, the current login user variables, the following is the system variables, for the entire system shared variables defined, our Java environment variables to the "System variables" configuration.

B, configure "Java_home", the variable value is the JDK installation path: "C:\Program files\java\jdk1.7.0_80"

C, configure "CLASSPATH", the variable value is the JDK Lib path under two jar package: ";%java_home%\lib\dt.jar;%java_home%\lib\tools.jar;"

D, configure "path", the value of the variable is the bin path of the JDK and JRE: "%java_home%\bin;%java_home%\jre\bin;"

The environment variable configuration is complete. Tests whether the environment variable is configured successfully.

4. Environment variable Configuration test

A, run-"cmd" for the command panel, enter "Java-version", display the Java version information, Proof Java installation success:

B, execute command: javac E:\HelloWord.java compile Java file, Helloworld.java compile successfully, generate Helloworld.class file.

1  Public class helloworld{2    Public Static void Main (string[] args) {34        System.out.print ("Hello"); 5 6   }7 }

C, execute command: Java E:\HelloWorld.class run the. class file.

Second, MYECLIPSE1, MyEclipse installation

MyEclipse software is executable file, directly installed.

2. Set Workspace encoding format

Window-->preferences-->general and Workspace set the default encoding format.

3. Edit the comment template

Window-->preferences-->java-----code Style---code TEMP sets the default encoding format.

Click "Import", select our template to import codetemplates.xml,apply, OK. The template format is as follows:

<?XML version= "1.0" encoding= "UTF-8"?><Templates><TemplateAutoInsert= "false"Context= "Constructorcomment_context"deleted= "false"Description= "Comment for created constructors"enabled= "true"ID= "Org.eclipse.jdt.ui.text.codetemplates.constructorcomment"name= "Constructorcomment">/** Create a new instance of ${enclosing_type}. * ${tags} */</Template><TemplateAutoInsert= "true"Context= "Settercomment_context"deleted= "false"Description= "Comment for setter Method"enabled= "true"ID= "Org.eclipse.jdt.ui.text.codetemplates.settercomment"name= "Settercomment">/** * @param ${param} The ${bare_field_name} to set */</Template><TemplateAutoInsert= "false"Context= "Methodcomment_context"deleted= "false"Description= "Comment for non-overriding methods"enabled= "true"ID= "Org.eclipse.jdt.ui.text.codetemplates.methodcomment"name= "Methodcomment">/** * Method Description: * Creator: * Creation time: ${date} ${time} * ${tags} * /</Template> <TemplateAutoInsert= "true"Context= "Delegatecomment_context"deleted= "false"Description= "Comment for delegate Methods"enabled= "true"ID= "Org.eclipse.jdt.ui.text.codetemplates.delegatecomment"name= "Delegatecomment">/** * ${tags} * ${see_to_target} */</Template><TemplateAutoInsert= "false"Context= "Filecomment_context"deleted= "false"Description= "Comment for created Java files"enabled= "true"ID= "Org.eclipse.jdt.ui.text.codetemplates.filecomment"name= "Filecomment">/** * file name: ${file_name} * * Version information: This version starts at 201503 and is the responsibility of the project team members for development, testing and implementation. * Date: ${date} * Copyright: Company All rights Reserved ${year}* * */</Template><TemplateAutoInsert= "false"Context= "Gettercomment_context"deleted= "false"Description= "Comment for getter Method"enabled= "true"ID= "Org.eclipse.jdt.ui.text.codetemplates.gettercomment"name= "Gettercomment">/** * ${bare_field_name} * * @return the ${bare_field_name} */</Template><TemplateAutoInsert= "true"Context= "Overridecomment_context"deleted= "false"Description= "Comment for overriding methods"enabled= "true"ID= "Org.eclipse.jdt.ui.text.codetemplates.overridecomment"name= "Overridecomment">/* (non-javadoc) * ${see_to_overridden} */</Template><TemplateAutoInsert= "false"Context= "Fieldcomment_context"deleted= "false"Description= "Comment for Fields"enabled= "true"ID= "Org.eclipse.jdt.ui.text.codetemplates.fieldcomment"name= "Fieldcomment">/** * ${field}: */</Template><TemplateAutoInsert= "false"Context= "Typecomment_context"deleted= "false"Description= "Comment for created types"enabled= "true"ID= "Org.eclipse.jdt.ui.text.codetemplates.typecomment"name= "Typecomment">/** * Project name: ${project_name} * class name: ${type_name} * Class Description: * Creator: * Creation time: ${date} ${time} * Version: 1.0.1 */</Template> </Templates>
Codetemplates.xml4. Freemaker Editor Plugin

A, download freemaker-ide:https://sourceforge.net/projects/freemarker-ide/files/

b, will download the file: Freemarker-ide-0.9.14.zip decompression.

C, the extracted plugins package hudson.freemarker_ide_0.9.14 folder into the MyEclipse installation directory Dropins, example:D:\Program files\myeclipse10.0\m Yeclipse 10\dropins

D, restart MyEclipse, prompt to install the plugin

E, if the installation is successful, in: Window-->preferences windows, will appear and general, Ant peer Freemaker Editor

F, set the default editing mode for. FTL files: Window-->preferences-->general and Editors, *.FTL Fre under File associations Emaker Editor is default, complete.

5, FindBugs installation

A,: http://downloads.sourceforge.net/project/findbugs/findbugs%20eclipse%20plugin/1.3.9/ Edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821.zip?use_mirror=ncu

b, will download the Edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821.zip decompression, will extract the Edu.umd.cs.findbugs.plugin.eclipse_ 1.3.9.20090821 folder is placed under MyEclipse installation directory Dropins

C, restart the MyEclipse, in the Window-->preferences-->java directory appears Findbugs, the installation is successful.

D, findbug tutorial see: http://beee.iteye.com/blog/1470698, Brief introduction:

1) Findbug is a static analysis tool that examines a class or jar file, compares bytecode to a set of defect patterns, and discovers possible problems.

2) Findbug is an open source Eclipse Code Checker that helps us to easily, efficiently and comprehensively discover bugs and potential pitfalls in your code

3) Findbug use: Project Right---findBugs---findBugs execution is OK.

Jdk+myeclipse+svn

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.