java ee環境配置

來源:互聯網
上載者:User

------------------------------中間伺服器-----------------------------

下載的tomcat 6.0.33  
http://mirror.bjtu.edu.cn/apache/tomcat/tomcat-6/v6.0.33/bin/apache-tomcat-6.0.33.exe

-----------------------------開發IDE------------------------------------------------

下載eclipse和myeclipse外掛程式變形平板
http://downloads.myeclipseide.com/downloads/products/eworkbench/7.0/myeclipse-7.5.0-win32.exe

MyEclipse 7.5 註冊碼
Subscriber: www.1cn.biz Subscription Code: jLR8ZC-855550-6756755080661717

-----------------------------資料庫與資料庫管理工具--------------------------

下載Mysql
http://dev.mysql.com/get/Downloads/MySQLInstaller/mysql-installer-5.5.15.0.msi/from/http://mysql.cdpa.nsysu.edu.tw/

Best support for Multilingualism

下載mysql ide navicat
這個ide能管幾乎所有的流行資料庫呢,mysql,sqlite,oracle,postgreSQL
http://www.navicat.com/download/download.html
註冊碼
NAVL-LIQE-XUFK-NZT7

-----------------------------------配置分割線-----------------------------------------

1,設定預設的全域JRE:
Window->Preferences-> Java -> Installed JREs ,這樣每次建立項目時,預設的JRE庫即為選中的項。

2,設定工作空間全域編碼:
設定UTF-8   Window->Preferences->General->Workspace 中Text file encoding 選擇other並選UTF-8

3,修改檔案預設編碼:
Window -> Preferences -> General -> Content Types
【注意是修改最下面的Default encoding】,在這裡可以將html、properties和jsp檔案的編碼都改成UTF-8的。
這樣修改後,以後每次建立properties並儲存時,就不會跳出一個對話方塊說你現在的編碼是ISO-8859-1的提示了。

4,修改特定檔案的編碼:
Window -> Preferences -> MyEclipse -> Files and Editors -> JSP
比如這裡修改JSP的頁面顯示編碼為UTF-8,那麼每次建立一個jsp檔案後,第一行的編碼設定內容就會像這樣所示:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

5,設定字型:
Window -> Preferences -> General -> Appearance -> Colors and Fonts -> Basic -> Text font

6,設定檔案預設編輯器:
Window -> Preferences -> General ->  Editors -> File Associations

7,設定當滑鼠移到文字上時的事件:這裡選擇快速顯示注釋。
Window -> Preferences -> General ->  Editors -> Text Editors -> When mouse moved into hover.

8,設定快速鍵:
Window -> Preferences -> General -> Keys
輸入要設定的動作的名稱,比如這裡輸入“run java”進行過濾,然後在Binding選項中設定快速鍵。
這樣以後每次要運行java程式時,只需要按 Alt+X 快速鍵就可以了。

9,禁用啟動時不需要的外掛程式:
Window -> Preferences -> General -> StartUp and Shutdown
比如Myeclipse Derby,老是在Server控制台佔著茅坑不拉屎,看著蛋疼,先把它給治了。

10,設定註冊碼:
Window -> Preferences -> MyEclipse -> Subscription

11,增強Eclipse的自動代碼提示功能(摘自網路):
    預設下, 只有按"."或"Alt + /"才出現代碼提示功能, 不夠強大, 作小小設定, 可將代碼提示功能像VS的一樣方便
    1. Window -> Preferences -> Java -> Editor -> Content Assist
    2. 將"Auto Activation triggers for java"設定為".abc"(預設是"."), 點"Apply"應用
    3. 匯出目前的Eclipse設定檔: File -> Export -> General -> Perferences, 選擇儲存路徑, 儲存得到*.epf檔案
    4. 用文字編輯器開啟剛才儲存的*.epf檔案, 搜尋".abc", 將".abc"部分改為
        ".abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ(," (以上為自動提示的觸發字元,
        根據個人習慣設定), 儲存此設定檔(個人覺得不太好用,容易出錯)
    5. 匯入此設定檔: File -> import -> General -> Perferences, 匯入修改後的設定檔.
12,關閉自動更新:
Myeclipse有時一開啟就在Progress中無休止地更新,必須把它給做了。
1. window --> preferences --> General --> Startup and Shutdown,
去掉 "Automatic Updates Scheduler " 項前面的勾。
2. Window --> Preferences --> Myeclipse Enterprise Workbench --> Maven4Myeclipse --> Maven --> "Download repository index updates on startup", 去掉前面的勾。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.