Java编程环境安装(win32)

Java编程环境安装(win32)

  • 注意:以下软件中必须使用相同的svn版本(如:TortoiseSVN, svn, Subversive)

Oracle JDK

Subversion Client

  • TortoiseSVN下载网站:http://tortoisesvn.net/downloads.html
    • 下载TortoiseSVN-1.6.12.20536-win32-svn-1.6.15.msi
    • 安装TortoiseSVN
  • SVN下载网站:
    • 安装SVN并把SVN的位置加入进PATH环境函数中

SpringSource Tool Suite (Eclipse)

STS-Eclipse设置

  • 添加以下插件
    • Help => Install new software => Eclipse Marketplace
    • Help => Eclipse Marketplace
      • Subclipse
    • FindBugs Eclipse Plugin
      • EclEmma Java Code Coverage
      • Checkstyle Plug-in
      • Jadclipse
    • dot4zest
      • (WikiText)
  • 设置
    • General => 选择*Show heap status*
    • General => Content Types => Text => Default encoding = UTF-8 => 点击 Update
    • General => Editors => Text Editors => Undo history size = 2000
    • General => Editors => Text Editors => 选择 Insert spaces for tabs
    • General => Editors => Text Editors => 选择 Show line numbers
    • General => Editors => Text Editors => Spelling => 关闭 Enable spell checking
    • General => Startup and Shutdown => 关闭 Atlassian Connector, Roo Integration, Mylyn Tasks, Mylyn Team
    • General => Workspace => 关闭 Build automatically
    • General => Workspace => Text file encoding => Other = UTF-8
    • General => Workspace => New text file line delimiter => Other = Unix
    • General => Workspace => Days to keep files = 28
    • General => Workspace => Maximum entries per file = 1500
    • General => Workspace => Maximum file size (MB) = 32
    • Ant => Editor => Formatter => 关闭 Use tab character instead of spaces
    • Ant => Editor => Formatter => Maximum line width (characters) = 160
    • Ant => Editor => Formatter => 选择 Wrap long element tags
    • Data Management => SQL Development => Execution Plan View Options => Export encoding = UTF-8
    • Install/Update => 选择 Show all versions of available software
    • Java => Code Style => Clean Up => 导入 %SCM%/etc/conf/eclipse/java_code-style_clean-up_profile.xml
    • Java => Code Style => Code Templates => 导入 %SCM%/etc/conf/eclipse/java_code-style_code-templates.xml
    • Java => Code Style => Formatter => 导入 %SCM%/etc/conf/eclipse/java_code-style_formatter_profile.xml
    • Java => Code Style => Organize Imports => 导入 %SCM%/etc/conf/eclipse/java_code-style_import-order.importorder
    • Java => Compiler => Errors/Warnings
      • Code style: 把除Non-externalized strings以外所有的选项设置为 Warning
      • Potential programming problems: 把所有的选项设置为 Warning
      • Name shadowing and conflicts: 把所有的选项设置为 Warning
    • Java => Compiler => Javadoc => 把所有的选项设置为 Warning
    • Java => Debug => Debugger timout = 30000
    • Java => Debug => Launch timout = 60000
    • Java => Editor => 选择 Light bulb for quick assists
    • Java => Editor => Save Actions => 启用 Perform the selected actions on save*并选择 *Organize imports
    • Java => Editor => Typing => 选择 Semicolons, Braces*和 *Escape text when pasting into a string literal
    • JavaScript => Code Style => 选择 Automatically add comments for new functions and types
    • JavaScript => Code Style => Clean Up => 导入 %SCM%/etc/conf/eclipse/javascript_code-style_clean-up_profile.xml
    • JavaScript => Code Style => Code Templates => 导入 %SCM%/etc/conf/eclipse/javascript_code-style_code-templates.xml
    • JavaScript => Code Style => Formatter => 导入 %SCM%/etc/conf/eclipse/javascript_code-style_formatter_profile.xml
    • JavaScript => Editor => 选择 Light bulb for quick assist
    • JavaScript => Editor => Typing => 选择 Semicolons, Braces*和 *Escape text when pasting into a string literal
    • JavaScript => Validator => Errors/Warinings => 启用 Enable JavaScript semantic validation
    • Maven => 选择 Debug Output, Download Artifact Sources, Download Artifact JavaDoc
    • Maven => Installations => 添加 %JAVA_DEV_ENV%\maven-<VERSION>
    • Maven => Installations => 设置 Global settings = %SCM%/etc/conf/eclipse/maven_global_settings.xml
    • Maven => POM Editor => 选择 Show advanced tabs in the POM Editor
    • Remote Systems => Files => 选择 Show hidden files
    • Run/Debug => Console
      • Fixed width console = 160
      • Console buffer size = 1000000
      • Displayed tab width = 4
    • Run/Debug => Launching
      • 取消 Remove terminated launches when a new launch is created
      • 选择 Always launch the previously launched application
    • Server => Launching => 取消 Automatically publish when starting servers
    • Spring => Dashboard => 取消 Show Dashboard On Startup
    • Spring => User Agent Analysis => 选择 Disable UAA
    • Tasks => Synchronization => 取消 Synchronize with repositories
    • Team => 选择 Show all synchronization information
    • Team => SVN => 选择 show revision comparisons
    • Java => FindBugs => analysis effort = maximum
    • Terminal
      • Terminal buffer lines = 1000000
      • Serial timeout = 30
      • Network timeout = 30
    • Web => CSS Files => Encoding = UTF-8
    • Web => CSS Files => Editor
      • Line width = 160
      • 选择 Indent using spaces
      • Indentation size = 4
    • Web => HTML Files => Encoding = UTF-8
    • Web => HTML Files => Editor
      • Line width = 160
      • 选择 Align final bracket
      • 选择 Indent using spaces
      • Indentation size = 4
    • Web => JSP Files => Encoding = UTF-8
    • XML => XML Files => Editor
      • Line width = 160
      • 取消 Join lines
      • 选择 Indent using spaces
      • Indentation size = 4
    • XML => XML Files => Validation => 选择 Enable markup validations
Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s