Eclipse开发环境配置-indigo
Eclipse IDE开发环境使用教程说明书

iAbout the T utorialEclipse is an integrated development environment (IDE) for Java and other programming languages like C, C++, PHP, and Ruby etc. Development environment provided by Eclipse includes the Eclipse Java development tools (JDT) for Java, Eclipse CDT for C/C++, and Eclipse PDT for PHP, among others.This tutorial will teach you how to use Eclipse in your day-2-day life while developing any software project using Eclipse IDE. We will give special emphasis on Java project. AudienceThis tutorial has been prepared for beginners to help them understand basic functionality of Eclipse tool. After completing this tutorial, you will find yourself at a moderate level of expertise in using Eclipse IDE from where you can take yourself to next levels. PrerequisitesWe assume you are going to use Eclipse IDE to handle all levels of Java projects development. So it will be good if you have knowledge of software development using any programming language specially Java programming.Copyright & Disclaimer© Copyright 2015 by Tutorials Point (I) Pvt. Ltd.All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book can retain a copy for future reference but commercial use of this data is not allowed. Distribution or republishing any content or a part of the content of this e-book in any manner is also not allowed without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or inthistutorial,******************************************iT able of ContentsAbout the Tutorial (i)Audience (i)Prerequisites (i)Copyright & Disclaimer (i)Table of Contents .................................................................................................................................... i i 1.OVERVIEW (1)What is Eclipse? (1)Licensing (1)Eclipse Releases (1)2.INSTALLATION (3)Downloading Eclipse (3)Installing Eclipse (3)Launching Eclipse (4)3.EXPLORE WINDOWS (5)Parts of an Eclipse Window (5)Using Multiple Windows (6)4.EXPLORE MENUS (7)Typical Eclipse Menus (7)Brief Description of Menus (8)Customizing Menus (8)5.EXPLORE VIEWS (9)About Views (9)Organizing Views (9)Moving Views (9)Creating View Folders (10)Opening a view (10)6.PERSPECTIVES (13)What is a Perspective? (13)Opening a Perspective (13)Switching between Perspectives (13)Closing a Perspective (14)Customizing a Perspective (14)7.WORKSPACES (16)About Eclipse Workspace (16)UI Elements for Managing the Workspace (16)8.CREATE JAVA PROJECT (18)Opening the New Java Project wizard (18)Using the New Java Project wizard (18)Viewing the Newly Created Project (20)9.CREATE JAVA PACKAGE (21)Opening the New Java Package wizard (21)Using the New Java Package Wizard (21)Viewing the Newly Created Package (22)10.CREATE JAVA CLASS (23)Opening the New Java Class Wizard (23)Using the New Java Class Wizard (23)Viewing the Newly Created Java class (24)11.CREATE JAVA INTERFACE (25)Opening the New Java Interface Wizard (25)Using the New Java Interface Wizard (25)Viewing the Newly Created Java Interface (26)12.CREATE XML FILE (27)Opening the New XML File wizard (27)Using the New XML File wizard (28)Viewing the Newly Created XML File (29)13.JAVA BUILD PATH (30)Setting the Java Build Path (30)14.RUN CONFIGURATION (31)Creating and Using a Run Configuration (31)15.RUNNING A PROGRAM (33)Running a Java Program (33)16.CREATE JAR FILES (35)Opening the Jar File wizard (35)Using the Jar File wizard (35)17.CLOSE PROJECT (37)Why Close a Project? (37)How to Close a Project? (37)Closed Project in Package Explorer (38)18.REOPEN PROJECT (39)Reopening a Closed Project (39)19.BUILD PROJECT (40)Building a Java Project (40)20.DEBUG CONFIGURATION (42)Creating and Using a Debug Configuration (42)21.DEBUGGING A PROGRAM (44)Debugging a Java Program (44)22.PREFERENCES (48)Setting Preferences (48)23.CONTENT ASSIST (50)Using Content Assist (50)24.QUICK FIX (52)Using Quix Fix (52)25.HOVER HELP (54)Using Hover Help (54)26.SEARCH MENU (56)Searching the Workspace (56)27.NAVIGATION (58)Navigating the Eclipse Workspace (58)Open Type (58)Open Type in Hierarchy (60)Open Resource (61)28.REFACTORING (63)Refactoring using Eclipse (63)29.ADD BOOKMARKS (64)About Bookmarks (64)Adding a Bookmark (64)Opening the Bookmarks View (64)Using the Bookmarks View (65)30.TASK MANAGEMENT (66)Managing Tasks (66)Opening the Tasks View (67)Using the Tasks View (67)31.INSTALL PLUGINS (69)Locating and Installing Plug-ins (69)32.CODE TEMPLATES (73)Using Code Templates (73)Modifying/Adding code templates (74)33.SHORTCUTS (75)About Shortcuts (75)34.RESTART OPTION (78)Restarting Eclipse (78)35.TIPS & TRICKS (79)36.WEB BROWSERS (81)Internal Web Browser (81)Eclipse 7What is Eclipse?In the context of computing, Eclipse is an integrated development environment (IDE) for developing applications using the Java programming language and other programming languages such as C/C++, Python, PERL, Ruby etc.The Eclipse platform which provides the foundation for the Eclipse IDE is composed of plug-ins and is designed to be extensible using additional plug-ins. Developed using Java, the Eclipse platform can be used to develop rich client applications, integrated development environments, and other tools. Eclipse can be used as an IDE for any programming language for which a plug-in is available.The Java Development Tools (JDT) project provides a plug-in that allows Eclipse to be used as a Java IDE, PyDev is a plugin that allows Eclipse to be used as a Python IDE, C/C++ Development Tools (CDT) is a plug-in that allows Eclipse to be used for developing application using C/C++, the Eclipse Scala plug-in allows Eclipse to be used an IDE to develop Scala applications and PHPeclipse is a plug-in to eclipse that provides complete development tool for PHP.LicensingEclipse platform and other plug-ins from the Eclipse foundation is released under the Eclipse Public License (EPL). EPL ensures that Eclipse is free to download and install. It also allows Eclipse to be modified and distributed.Eclipse ReleasesEvery year, since 2006, the Eclipse foundation releases the Eclipse Platform and a number of other plug-ins in June.1.Eclipse8Eclipse 9Downloading EclipseYou can download eclipse from /downloads/. The download page lists a number of flavors of eclipse.The capabilities of each packaging of eclipse are different. Java developers typically use Eclipse Classic or Eclipse IDE for developing Java applications.The drop down box in the right corner of the download page allows you to set the operating system on which eclipse is to be installed. You can choose between Windows, Linux and Mac. Eclipse is packaged as a zip file.Installing EclipseTo install on windows, you need a tool that can extract the contents of a zip file. For example you can use:∙7-zip ∙PeaZip ∙ IZArcUsing any one of these tools, extract the contents of the eclipse zip file to any folder of your choice.2.Launching EclipseOn the windows platform, if you extracted the contents of the zip file to c:\, then you can start eclipse by using c:\eclipse\eclipse.exeWhen eclipse starts up for the first time it prompts you for the location of the workspace folder. All your data will be stored in the workspace folder. You can accept the default or choose a new location.1011If you select "Use this as the default and do not ask again", this dialog box will not come up again. You can change this preference using the Workspaces Preference Page. See the Preference tutorialpage for more details.Eclipse 12Parts of an Eclipse WindowThe major visible parts of an eclipse window are:∙Views ∙Editors (all appear in one editor area) ∙Menu Bar ∙ ToolbarAn eclipse perspective is the name given to an initial collection and arrangement of views and an editor area. The default perspective is called java. An eclipse window can have multiple perspectives open in it but only one perspective can be active at any point of time. A user can switch between open perspectives or open a new perspective. A perspective controls what appears in some menus and tool bars.3.EclipseA perspective has only one editor area in which multiple editors can be open. The editor area is usually surrounded by multiple views. In general, editors are used to edit the project data and views are used to view the project metadata. For example, the package explorer shows the java files in the project and the java editor is used to edit a java file.The eclipse window can contain multiple editors and views but only one of them is active at any given point of time. The title bar of the active editor or view looks different from all the others.The UI elements on the menu bar and tool bar represent commands that can be triggered by an end user.Using Multiple WindowsMultiple Eclipse Windows can be open at the same time. To open a new window, click on the Windows menu and select the New Window menu item.Each window can have a different perspective open in them. For example you could open two Eclipse windows one in the Java perspective and the other in the Debug perspective. The window showing the Java perspective can be used for editing the java code and the window showing the debug perspective can be used for debugging the application being developed.13Eclipse 14T ypical Eclipse MenusThe typical menus available on the menu bar of an Eclipse window are:∙File menu ∙Edit menu ∙Navigate menu ∙Search menu ∙Project menu ∙Run menu ∙Window menu ∙ Help menu4.Plug-ins can add new menus and menu items. For example when the java editor is open, you will see the Source menu and when the XML editor is open, you will see the Design menu. Brief Description of Menus15Customizing MenusThe visible menu items on a menu depend on the installed plug-ins and customization done using the Customize Perspective dialog box.16Eclipse 17About ViewsEclipse views allow users to see a graphical representation of project metadata. For example the project navigator view presents a graphical representation of the folders and files associated with a project and properties view presents a graphical representation of an element selected in another view or editor.An eclipse perspective can show any number of views and editors. All editor instances appear in a single editor area, whereas views are placed inside view folders. A workbench window can display any number of view folders. Each view folder can display one or more views. Organizing ViewsThe following picture shows four views arranged in a view folder.The picture given below shows the same four views arranged in two view folders.5.Moving ViewsTo move a view from one view folder to another, just click on the view title and drag to the title bar area of another view folder. The green line shown below is a result of dragging the title bar of the Properties view from one view folder to the title bar area of another view folder. The Properties view can be moved to where the green line is by releasing the mouse button and sending out a drop event.Creating View FoldersView folders can be dynamically created by dragging the title bar of a view to anywhere outside the editor area and title bar of another view folder. As you drag the title bar around, green lines will indicate where exactly the new view folder will be created.Moving the drag icon to the bottom of a window allows you to create a view folder that spans the entire width of the window. Moving the drag icon to the left or right edge of window allows you to create a view folder that spans the entire height of the window.18Opening a viewTo open a view, click on the Window menu and select the Show View menu item.19Clicking on the Other menu item brings up the Show View dialog box that allows you to locate and activate a view.20The views are organized by category. To quickly locate a view, just type the name of a view into the filter text box. To open a view, select it and click on the OK button. The subsequent pages of this tutorial introduce you to a number of useful views.21End of ebook previewIf you liked what you saw…Buy it from our store @ https://22。
Eclipse_indigo(3.7)+jdk1.7+tomcat7.0.21+win7配置

1. Eclipse 3.7 下载安装/downloads/选择的Eclipse IDE for Java Developer ,Indigo Packages 。
安装没什么困难,解压,放到喜欢的目录里即可;双击eclipse.exe启动;首次启动需设置workbench;如果本机上安装多个jdk,有如下地方需要注意(见下图),检查如下列表是否有需要的jdk,如果没有,可以按“Add…”添加,然后勾选(下面tomcat处有需要)。
2. jdk 1.7下载安装/technetwork/java/javase/downloads/index.html设置环境变量:右击“我的电脑->属性->高级->环境变量”,在系统变量下:新建“JAVA_HOME”,值为“\Java\jdk1.7.0”;添加“%JAVA_HOME%\bin;”到Path 变量;运行cmd,java 、javac查看是否正常;配置classpath解决,值为“%JAVA_HOME%\jdk1.7.0\lib\tools.jar;“%JAVA_HOME%\jdk1.7.0\lib\dt.jar”,运行正常后,删掉classpath仍然正常。
待验证。
3.tomcat7.0下载安装/选择的是zip 文件,解压即可,不用安装;双击apache-tomcat-7.0.20\bin\startup.bat 启动服务,在浏览器输入http:\\localhost:8080 或http:\\127.0.0.1:8080检验,应出现tomcat欢迎页面。
双击apache-tomcat-7.0.20\bin\shutdown.bat 停止服务;【如果无法启动,必须设定环境变量<此部分和tomcat 6.0 步骤一样>,具体如下:在我的电脑->属性->高级->环境变量->系统变量中添加以下环境变量(假定你的tomcat安装在c:\tomcat):CATALINA_HOME:c:\tomcatCATALINA_BASE:c:\tomcatTOMCAT_HOME: C:\Tomcat然后修改环境变量中的classpath,把tomat安装目录下的common\lib下的servlet.jar追加到classpath中去,修改后的classpath如下:classpath=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME% \common\lib\servlet-api.jar;注意:最新版本的Tomcat中可能没有common这个文件夹了。
D-5000报表安装手册(20120928)

D-5000 (基于OpenOffice)报表安装手册说明:本安装手册涉及到的程序和软件列表如下:1、OpenOfifice Linux安装程序OOo_3.3.0_Linux_x86-64_install-rpm-wJRE_zh-CN.tar.gz2、OpenOffice SDK 安装程序OOo-SDK_3.3.0_Linux_x86-64_install-rpm_en-US.tar.gz3. java安装程序jdk-6u19-linux-x64.bin4、Linux报表发布程序report.jar5、权限管理服务程序priv_serverpriv_server_dll6、编译环境安装eclipse-jee-indigo-linux-gtk-x86_64.tar(注意:以上1-3的软件包可能会因为版本升级名称会稍有不同,6软件包是用来跟踪错误的,可以不安装,需要编译程序的机器上必须安装3:java)以下举例安装机器名为py-dd1,所有安装软件包放在/home/d5000/puyang/report_install目录下一、安装OpenOffice3.3版本1.1、安装java jdk-6u19-linux-x64.bin一、解压安装JDK安装文件:jdk-6u19-linux-x64.bin步骤:1,以root身份拷贝jdk-6u19-linux-x64.bin至路径/usr[root@py-dd1 report_install]# cp jdk-6u19-linux-x64.bin /usr[root@py-dd1 report_install]# cd /usr2,以root身份执行命令./jdk-6u19-linux-x64.bin,[root@py-dd1 usr]# ./jdk-6u19-linux-x64.bin(如果执行不成功,可能jdk-6u19-linux-x64.bin没有可执行权限,需要执行如下命令:[root@py-dd1 usr]# chmod a+x jdk-6u19-linux-x64.bin)这时会出现一段协议,连续敲空格键,当询问是否同意时,输入yes,回车。
eclipse环境搭建

1。
下载JDK先去/javase/downloads/index.jsp下载java开发文档JDK 现在版本1.5.0.0.9 这是进行java开发的根本所在!JDK的中文API帮助文件可以在sun中国技术社区/chinese_java_docs.html获得。
安装JDK. 也就安装JRE了,最好安装路径中不能包括中文字符。
2 。
搭构集成开发环境IDE我非常喜欢使用eclipse。
据说它有一统语言开发环境IDE所有开发平台的趋势。
先从/eclipse/downloads/下载eclipse 当前最新稳定版本eclipse 3.2.1当然若是需要汉化还应该下载Language Packs 3.2.1版本的下载地址/eclipse/downloads/drops/L-3.2.1_Language_Packs-20060921094 5/index.php由此获得了两个压缩包.解压elicpse压缩包到路径例如:F:\;若汉化则也须将汉化包须解压到同一路径F:\;或者将features ,plugins这两个文件夹复制到eclipse安装路径下这里需要注意。
如果在没有汉化之前就运行过eclipse.exe 可执行文件那么需要将:(例如我安装的eclipse )F:\eclipse\configuration 文件夹中除config.ini配置文件之外的所有文件夹删除重新打开eclipse.exe 获得的就是中文版了!这里有些小窍门:例如你想运行英文版的甚至繁体版的eclipse可以按照如下操作1.)在桌面上建立快捷方式;2).在桌面快捷方式下右键修改属性;若你安装了Language Packs参数-nl en 表示Eclipse版本语言为英语例如若改为-nl zh_tw 就是繁体文了参数-vmargs -Xms40m -Xmx512M 可以设置给eclipse分配的堆内存!可以在开发与调试大型应用软件时加快执行速度例如以上参数可分配512MB内存参数-data F:\eclipse\Workspace2 那么可以指定特地的工作区间这些参数的设置那么你的桌面就可以有几个不同作用的Eclispse桌面快捷方式了3。
Eclipse开发环境配置

Eclipse开发环境配置 最近要在2个多年前的⽼项⽬⾥添加功能,⽤idea启动失败之后,尝试使⽤Eclipse启动成功了。
⽼项⽬到什么程度呢? ⼀个是Maven项⽬,SpringMVC,要在Tomcat8上运⾏,数据源是在Tomcat的context.xml⽂件⾥的。
另⼀个是传统JavaWeb项⽬,jdk1.6,框架是:Spring + Struts + itatis,引⼊lib的jar,在Tomcat上运⾏,数据源也是在Tomcat6的context.xml⽂件⾥的。
所以本⼈只能重新捡起来多年未⽤的Eclipse,配置了1天时间,把配置过程,和启动项⽬过程总结⼀下。
1. Eclipse配置1.1 基础配置 Eclipse修改字体:Window --> Preferences --> General --> Appearance --> Colors and Fonts 修改通⽤字体:Basic --> Text Font 修改Java⽂件字体:Java --> Java Editor Text Font Eclipse修改项⽬字符集:右击项⽬ --> Properties --> Resource1.2 开发环境配置 配置过程默认JDK、Maven等环境变量都是配置好的。
开发模式:新装的Eclipse,默认是JavaEE模式,需要我们点击右上⾓的“Open Perspective”图标,选择Java,时候要使⽤Java模式开发。
Eclipse配置JDK:Window -> Preferences -> java -> install jres -> add -> standard vm -> 设置好相应的jre home(虽然名字叫jre home,建议选择jdk路径) Eclipse配置Maven:Window --> Preferences --> Maven --> Installations --> 设置maven Eclipse配置Tomcat:Window --> Preferences --> Servers --> 选择Tomcat对应的版本,添加Tomcat地址。
JDK环境配置和eclipse的基本使用教程(包括调试)

第一次实验报告/**@Author:李日中@Data:2012-9-8*/操作系统:Windows XPJDK版本:jdk-7u6-windows-i586.exe集成开发环境(IDE):eclipse-SDK-4.2-win32JDK下载网址:/technetwork/java/javase/downloads/index.html Eclipse下载网址:/downloads/(选择Eclipse Classic 4.2)DOS(字符界面)编程的环境变量配置:1、右击我的电脑——选择属性——选择高级——点击环境变量;2、在Administrator的用户环境变量中(1)新建path(不区分大小写),输入.;D:\Java\jdk1.7.0_06;D:\Java\jdk1.7.0_06\bin;D:\Java\jre7\bin;如图:(2)新建classpath(不区分大小写),输入.;D:\Java\jdk1.7.0_06\lib\dt.jar;D:\Java\jdk1.7.0_06\lib\tools.jar如图:(3)新建java_home,输入.;D:\Java\jdk1.7.0_06;如图:说明:1、(3)步骤不是必须的,因为(1)(2)步骤中我采取了绝对路径;2、变量的命名是不区分大小写的;3、配置完环境变量后,有的机器需要重新启动,看情况。
3、DOS界面的编程(1)基础知识1、dos界面下,是不区分大小写,但区分中英文符号,路径可以是中文,也可以是英文,不过建议全英文,因为dos的debug状态下,中文可能会乱码;2、目录切换的基本命令如:输入cmd,Enter 后输入D:如图:Enter后的结果,如图:再输入cd D:\JA V A培训\javaDOS (注意cd后有空格),Enter后的结果,如图:(2)DOS界面下建立、编译、翻译执行JA V A Application,1、如:在D:\JA V A培训\javaDOS目录下,新建一个文本文件,重命名为InnerClass.java注意去掉“隐藏已知文件类型的拓展名”前面的钩,如图:3、使用UltraEdit打开该文件,输入代码如下:class Outer{private int num = 100;//内置类可以访问private的,public,protected肯定可以class Inner //定义内置类{private int num = 90;void output(){int num = 80;System.out.println(num);//局部变量System.out.println(this.num);//内置类私有成员System.out.println(Outer.this.num);//引用外部类中的私有成员}}class InnerForTest{}class InnerTest{}void output(){Inner inner = new Inner();inner.output();//外部类成员函数调用内部类成员函数}Inner GetInner(){return new Inner();}}class InnerClass{public static void main(String[] args){Outer outer = new Outer();outer.output();//outer.output().inner.output(); //能使用在外部类一个成员函数中已经定义好的内置类对象?}}然后保存,在dos界面下,输入javac InnerClass.java,按下回车键,如图所示:你会发现,什么也没输出,这就对了。
eclipse++cdt+MinGW_开发环境配置——详细说明

在用Eclipse编写Java应用程序时,感觉很爽,Eclipse不愧是强大的IDE,不冤枉IBM花看那么多钱和众多开源爱好者的努力(你们辛苦了!!谢谢!!!)。
突发奇想,想玩玩Eclipse 编写C++程序。
一.环境的安装与配置首先,当然必须要做的,就是下载软件和插件。
(1)JDK(jdk6)(2)Eclipse(3.4)(3)CDT插件(cdt-master-5.0.2)(4)MinGW编译器(我用的是MinGW 5.1.6)这些知识网上多的是,不多说了,自己下载安装就好了,我想大家应该都会。
其次就是环境的配置,对于用过Eclipse编写过Java程序的人来说JDK的环境变量配置应该很熟,主要介绍下MinGw的配置。
1.MinGW 5.1.6的安装首先下载,然后双击安装,过程如下:这一步如果你只想用Eclipse编译C++/C程序的话,之选上面三项即可,当然你可以都安装上。
接下来就等着慢慢下载和安装吧,如果你的网速比较快的话,那么你是非常幸运的。
2.MinGW环境变量的设置这个网上介绍的也很多,主要是设置path变量,设置如下MINGW_HOME=D: \MinGWLIBRARY_PATH = %MINGW_HOME%\libC_INCLUDE_PATH = %MINGW_HOME%\includeCPLUS_INCLUDE_PATH= %C_INCLUDE_PATH%\c++\3.4.5;%C_INCLUDE_PATH%\c++\3.4.5\ming w32;%C_INCLUDE_PATH%\c++\3.4.5\backward;%C_INCLUDE_PATH%Path最后加上%MINGW_HOME%\bin这一步根据你安装的路径来定,不要盲目Copy。
然后把D: \MinGW\bin目录下的MinGW32-make.exe复制一份(备份),然后改名为make.exe。
此时你可以再命令控制台下测试make命令,如果出现下图所示的情况则设置成功。
Ecilpse搭建C语言开发环境

Eclipse搭建C语言开发环境Eclipse进行C/C++开发—Eclipse+CDT+MinGW的配置与使用详解1.简介Eclipse作为目前如日中天的开放式IDE,由于有大量插件支持,所以几乎无所不能,除了Java开发的老本行之外,C/C++开发也不在话下。
下面就给大家介绍如何使用CDT(C/C++ Development Tools)进行C/C++开发。
本文适合有一定Eclipse使用经验的读者,如果您对Eclipse的基本操作还很陌生,请先在网上搜索相关教程进行学习。
2.相关软件的下载准备2.1 下载Eclipse SDK +CDT安装和配置请先从下载的Eclipse SDK,目前的最新版本是3.3.1,然后从下载与Eclipse版本相配套的CDT2.2 下载Eclipse IDE for C/C++直接下载打包好的,这个版本包含了最新版本的eclipse IDE的核心和与之配套的CDT,免去了安装CDT的麻烦。
2.3下载安装JDK为了能够正常运行Eclipse,请确保你的计算机上装有JDK,并且已经配置好了环境变量。
2.4下载C/C++编译器由于CDT中并不自带编译器,所以还需要安装一个C/C++的编译器,这里给大家推荐的是MinGW,下载地址为,以下将使用MinGW-3.1.0-1进行讲解。
3.软件的安装3.1Eclipse SDK +CDT的安装以上软件凑齐之后,便可以进行安装配置了。
首先,解压Eclipse SDK的安装程序即可完成Eclipse的安装,这里假设将其解压到C:\路径下,则C:\下会出现一个名为“eclipse”的文件夹。
接着,将CDT的安装文件同样解压到C:\路径下,由于其解压后同样是名为“eclipse”的文件夹,所以会插入或覆盖相应的文件,解压完成后,CDT的安装工作便完成了。
3.2 Eclipse IDE for C/C++的安装这是一个压缩包,直接解压就可以,这里面包含了CDT.3.3C/C++编译器MinGW的安装安装MinGW,假设安装到C:\MinGW目录下。
eclipse的配置

Eclipse 配置第1章快捷键的配置(加快开发过程中代码编写)MyEclipse(Eclipse)常用快捷键预览:快捷键组合作用Ctrl+1快速修复(最经典的快捷键,就不用多说了)Ctrl+D 删除当前行Ctrl+Q 定位到最后编辑的地方Ctrl+L 定位在某行(对于程序超过100的人就有福音了)Ctrl+M 最大化当前的Edit或View (再按则反之)Ctrl+/ 注释当前行,再按则取消注释Ctrl+O 快速显示OutLineCtrl+T 快速显示当前类的继承结构Ctrl + F11 快速执行程序Ctrl+Shift+P 定位到对于的匹配符(譬如{}) (从前面定位后面时,光标要在匹配符里面,后面到前面,则反之)Ctrl+Shift+R 全局搜索文件(查找工程内的文件)重构(注:一般重构的快捷键都是Alt+Shift开头的了)Alt+Shift+R 重命名(是我自己最爱用的一个了,尤其是变量和类的Rename)变量名全局更改(对于变量的引用很有用)Alt+Shift+M 抽取方法(这是重构里面最常用的方法之一了,尤其是对一大堆泥团代码有用)Alt+Shift+C 修改函数结构(比较实用,有N个函数调用了这个方法,修改一次搞定)Alt+Shift+L 抽取本地变量( 可以直接把一些魔法数字和字符串抽取成一个变量,尤其是多处调用的时候)Alt+Shift+F 把Class中的local变量变为field变量(比较实用的功能)Alt+Shift+I 合并变量(可能这样说有点不妥Inline)Alt+Shift+V 移动函数和变量(不怎么常用)Alt+Shift+Z 重构的后悔药(Undo)Alt+Shift+S 弹出资源代码(生成set/get方法的时候可以使用)Alt+Shift+J 增加预定义注释F3 跳转到类、变量的声明Ctrl+Alt+↓复制当前行到下一行(复制增加)Ctrl+Alt+↑复制当前行到上一行(复制增加)ALT+↑当前行和上面一行交互位置(同上)Alt+↓当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)Shift+Enter 在当前行的下一行插入空行(这时鼠标可以在当前行的任一位置,不一定是最后)第2章设置代码自动提示。
eclipse颜色设置方案

eclipse颜色设置方案Eclipse颜色设置方案。
Eclipse是一款功能强大的集成开发环境(IDE),它支持多种编程语言,如Java、C++、Python等。
在编写代码时,合适的颜色设置可以提高开发效率,让代码更易于阅读和理解。
本文将介绍如何在Eclipse中进行颜色设置,以及一些常用的颜色方案。
首先,打开Eclipse并进入“Window”菜单下的“Preferences”选项。
在弹出的对话框中,选择“General”下的“Appearance”菜单,然后点击“Colors and Fonts”。
在“Colors and Fonts”页面中,可以看到各种不同的代码元素和对应的颜色设置。
比如,可以设置关键字的颜色、注释的颜色、字符串的颜色等。
根据自己的喜好和习惯,可以对这些颜色进行个性化的调整。
比如,一些开发者喜欢将关键字设置成醒目的蓝色,将注释设置成灰色,这样可以更加清晰地区分不同的代码元素。
除了对代码元素的颜色进行设置,还可以对代码的背景色和文本颜色进行调整。
一些开发者喜欢将代码编辑器的背景设置成深色,这样可以减轻眼睛的疲劳,并且让代码更加突出。
而另一些开发者则喜欢将背景设置成浅色,这样可以更清晰地看到代码的细节。
另外,Eclipse还支持主题的设置。
在“Colors and Fonts”页面中,可以选择不同的主题,比如经典主题、黑色主题、白色主题等。
每种主题都有对应的颜色设置,可以根据自己的喜好进行选择。
除了默认的颜色设置外,Eclipse还支持安装插件进行更加个性化的颜色设置。
比如,有一些插件可以让代码中的不同代码元素显示成不同的图标,这样可以更加直观地看到代码的结构。
还有一些插件可以让代码的折叠行显示成不同的颜色,这样可以更加方便地进行代码的折叠和展开操作。
总的来说,Eclipse提供了丰富的颜色设置选项,可以让开发者根据自己的喜好和习惯进行个性化的设置。
合适的颜色设置不仅可以提高开发效率,还可以让代码更加易于阅读和理解。
Arduino的Eclispe开发环境的搭建

2) 构建 Core(不过并不必要) :点击 Core 文件夹, “Arduino_UNO”,后点击工具栏的小 锤子图标。 3) 构建 sketch,点击 Sketch 文件夹, “MorseTest”,后点击工具栏的小锤子图标。如果 跳过了刚才的第 3 步,那么此刻编译器也会先构建 Core,再构建 Sketch。注:构建,Build,
四、 从 POP 面向过程 到 OOP 面向对象
1) 在 Sketch 项目内为 类库 library 新建一个文件新建一个类,
会同时建立 2 个文件,.h 的头文件,和.cpp 的源文件。什么代码都还没写,eclipse 已经 把构造函数,析构函数的框架都搭起来了。
自此,arduino 的 Eclipse 的开发环境己经搭建成功了,可能新建 自己的项目了。 强列建议在使用前阅读 arduino 文档 http://eclipse.baeyens.it/。
以下的部分摘自[Arduino] 使用 Arduino Eclipse 插件进行 OOP 编程及类库开发这篇博 客,也可以自己阅读。
选择确定后跳转到下面界面。取消“"group items by category”选中。
选择“next”直到安装完成,安装中会提示一个对话框,选择“确定”即可。重启 Eclipse, 工具栏出现“AVR”选择则安装成功
● 配置 Eclipse 中的选择。 “windows” “preferences” 。进入到设置页面。选择 “Arduino.配置如下图所示,选中“use Arduino IDE tools in Eclipse” 。
到此,插件就己经安装成功。 ● 下面两个官方的建议的配置选项 1 项目在编译前自动保存选项。
2 在 Indigo SR1 中。增加 arduino.h 的全路径到最前面。我这里是 D:\Program Files\arduino-1.0.1\hardware\arduino\cores\arduino\Arduino.h
vdp开发人员环境搭建

VDP开发人员环境搭建1、eclipse下载下载专门为j2ee开发的indigo版本(64为和32位的都可以,请和jdk保持一致)。
如:eclipse-jee-indigo-SR2-win32.zip.2、jdk请使用jdk 1.6(64为和32为都可以,请和eclipse保持一致),jdk1.6之前的版本不行。
3、web服务器使用jboss as 7.1.1(eclipse开发时需要安装插件,jboss as 7、mysql等的其他配置请参照文档Developer Guide of Buliding VDP Server.docx和VDP_Development_Guide.docx)。
插件安装步骤:在eclipse中选择Help- Eclipse Marketplace…,出现如下界面,输入jboss tools后,选择安装JBoss Tools(Indigo)4、maven请使用maven3,eclipse开发时需要安装插件,但jboss as 7的插件中包含了maven插件,可以不需额外安装maven插件。
但我们需要在eclipse中配置maven。
配置步骤:i)在MAVEN_HOME/conf/settings.xml中加入如下语句:<proxies><proxy><id>optional</id><active>true</active><protocol>http</protocol><username>proxyuser</username><password>proxypass</password><host></host><port>8080</port><nonProxyHosts>|</nonProxyHosts></proxy></proxies>ii)在eclipse中选择Window->Preferences,出现如下界面,在Maven下的Installation中add自己下载的maveniii)在maven下的User Settings中进行如下配置:其中.me2下原本没有settings.xml文件,我们可以将MAVEN_HOME/conf/settings.xml复制粘贴过来。
eclipse详细安装步骤和环境配置

eclipse详细安装步骤和环境配置安装步骤:点击进⼊eclipse官⽹:找到对应软件点击下载1.右击“eclipse-jee-oxygen-R-win32-x86_64.zip”⽂件。
点击“解压到eclipse-jee-oxygen-R-win32-x86_64”。
2.根据系统类型选择安装,64位电脑安装“jdk-8u131-windows-x64_8.0.1310.11.exe”,32位电脑安装“jdk-8u131-windows-i586_8.0.1310.11” 。
3.点击“下⼀步”。
4.点击“公共JRE”,选择“此功能及所有⼦功能将安装在本地硬盘上”。
此软件为了好调⽤环境,不要更改安装路径。
5.等待安装。
6.点击更改选择安装路径,可在D盘或其它盘上,新建⼀个“java”⽂件夹。
选择安装路径后,点击“下⼀步”。
7.等待安装。
8.点击“关闭”。
9.配置JAVA运⾏环境。
右击“计算机”。
点击“属性”。
10.点击“⾼级系统设置”。
11.点击“⾼级”,再点击“环境变量”。
12.点击“新建”。
变量名输⼊“JAVA_HOME”,变量值输⼊JAVA软件安装路径。
步骤:第三步处的路径。
说明:双引号不要输⼊或复制到。
13.点击“新建”,变量名输⼊“CLASSPATH”变量值输⼊“.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar; ”。
说明:双引号不要输⼊或复制到。
14.在系统变量中找到“Path”,点击“编辑”。
在后⾯加⼊“ ;%JAVA_HOME%\bin ”。
说明:双引号不要输⼊或复制到。
15.同时按键盘上的“WIN键+R键”。
输⼊“cmd”。
点击确定。
16.输⼊“ java -version ”。
按⼀下“回车键”(Enter)。
出现⼀下⽂字说明安装成功。
如果出现其他⽂字。
说明安装失败,你可能需要从第11步重新配置。
17.双击“eclipse.exe”⽂件。
软件开发环境配置

使用eclipse真的有年头了,相信java程序员没有不知道它的,最近在给团队中新来的应届生做指导,专门讲解了一下Eclipse开发环境的搭建过程,一是帮助他们尽快的熟悉IDE的使用,二也是保证团队开发环境的一致性(顺便说一下,这点在敏捷开发团队中尤为重要,方便知识传播,提升团队快速响应能力)。
培训的过程中想起了自己当年初涉java时的情景,不免感慨万千啊。
正所谓“工欲善其事必先利其器”,话不多说,赶紧搭吧。
本文主要介绍在windows下搭建eclipse环境的过程,主要包括jdk的安装与配置、tomcat的安装与配置、eclipse的安装与配置以及eclipse常用插件的安装。
一。
jdk安装与配置jdk7于3月份刚刚发布,目前eclipse的最新版本中还没有提供对jdk7的编译支持,所以我们只下载jdk6。
下载地址:/jdk6/选择适合平台的安装文件,windows32下目前最新版本为:jdk-6u25-ea-bin-b03-windows-i586-27_feb_2011.exe默认安装即可,安装完成后要配置环境变量。
比如,我的安装目录为:C:\Program Files\Java\jdk1.6。
环境变量配置如下:XP系统下,右击“我的电脑”--选择“属性”--选择“高级”--点击“环境变量”在“系统变量(S)”中新建:JAVA_HOME:C:\Program Files\Java\jdk1.6新建:CLASS_PATH:.;%JAVA_HOME%\lib编辑:PATH:在最前面加上%JAVA_HOME%\bin;创建环境变量后,打开cmd,输入“java -version”验证是否安装成功。
Java代码1.C:\Windows\System32>java -version2.java version "1.6.0_13"3.Java(TM) SE Runtime Environment (build 1.6.0_13-b03)4.Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)二。
Eclipse设置、调优、使用

Eclipse设置、调优、使⽤⼀般在不对eclipse进⾏相关设置的时候,使⽤eclipse总是会觉得启动好慢,⽤起来好卡,其实只要对eclipse的相关参数进⾏⼀些配置,就会有很⼤的改善1.eclipse.ini配置参数Eclipse的启动由$ECLIPSE_HOME/eclipse.ini控制,如果$ECLIPSE_HOME 没有被定义,则Eclipse安装⽬录下的默认eclipse.ini会⽣效。
eclipse.ini是⼀个⽂本⽂件,其内容相当于在Eclipse运⾏时添加到 Eclipse.exe之后的命令⾏参数。
eclipse.ini 不仅仅可以设置eclipse的堆栈内存⼤⼩,也可设置默认使⽤的jdk版本。
其格式要求:1:所有的选项及其相关的参数必须在单独的⼀⾏之内2:所有在-vmargs之后的参数将会被传输给JVM,所有如果所有对Eclipse 设置的参数必须写在-vmargs之前(就如同你在命令⾏上使⽤这些参数⼀样)3.所有的选项及其相关的参数必须在单独的⼀⾏之内,若参数形如“项值”形式,中间的空格需要换⾏书写,如果值中有空格则需要⽤双引号括起来堆(Heap)和⾮堆(Non-heap)内存按照官⽅的说法:“Java虚拟机具有⼀个堆,堆是运⾏时数据区域,所有类实例和数组的内存均从此处分配。
堆是在 Java 虚拟机启动时创建的。
”“在JVM中堆之外的内存称为⾮堆内存(Non-heap memory)”。
可以看出JVM主要管理两种类型的内存:堆和⾮堆。
简单来说堆就是Java代码可及的内存,是留给开发⼈员使⽤的;⾮堆就是JVM留给⾃⼰⽤的,所以⽅法区、JVM内部处理或优化所需的内存(如JIT编译后的代码缓存)、每个类结构(如运⾏时常数池、字段和⽅法数据)以及⽅法和构造⽅法的代码都在⾮堆内存中。
堆内存分配:JVM初始分配的内存由-Xms指定,默认是物理内存的1/64;JVM最⼤分配的内存由-Xmx指定,默认是物理内存的1/4。
eclipse indigo的使用方法

eclipse indigo的使用方法Eclipse Indigo是一个软件开发项目,专注于为高度集成的工具开发提供一个全功能的、具有商业品质的工业平台。
以下是一些关于Eclipse Indigo的基本使用方法:1. 安装Eclipse Indigo:首先,您需要下载并安装Eclipse Indigo。
可以从Eclipse官网下载最新版本的Indigo。
2. 创建Java项目:在Eclipse Indigo中,您可以创建一个新的Java项目。
选择“File” -> “New” -> “Java Project”,然后输入项目名称,即可创建一个新的Java项目。
3. 编写Java代码:在Eclipse Indigo中,您可以在Java项目中编写Java代码。
在编辑器中编写代码后,可以选择“Run” -> “Run”来运行代码。
4. 调试Java代码:Eclipse Indigo提供了强大的调试功能,可以帮助您调试Java代码。
可以在代码中设置断点,然后使用调试视图来查看变量的值和执行流程。
5. 创建Maven项目:如果您使用Maven进行项目管理,可以在Eclipse Indigo中创建一个新的Maven项目。
选择“File” -> “New” -> “Maven Project”,然后输入项目坐标,即可创建一个新的Maven项目。
6. 构建项目:在Eclipse Indigo中,可以使用Maven命令构建项目。
选择“Run” -> “Maven Build”,然后输入要构建的项目的坐标和要执行的命令,即可构建项目。
7. 导入现有项目:如果您已经有一个现有的Java或Maven项目,可以在Eclipse Indigo中导入该项目。
选择“File” -> “Import”,然后选择要导入的项目类型,即可导入现有项目。
以上是一些基本的使用方法,但Eclipse Indigo的功能非常强大,还有许多高级功能等待您去探索。
Eclipse集成开发环境

Linux下基于eclipse的arm开发环境的建立这是我参考了网上的很多资料后,修改并验证的,有一定的参考意义。
不一定面面俱到,因为有的地方说多了就显得有点啰嗦,要是还有疑问就给我留言我尽力解答。
1、安装redhat9,(可以用迅雷下,速度还不错),不一定非得用完全安装,将开发包都装上就可以了,vsftp也要装,这样大概需要1.6g左右的空间, 这里设置主机ip:192.168.0.3,开发板ip:192.168.0.2ps:我在ubuntu上就怎么也编译不出开发板能用的程序,非得用RedHat9才行,很郁闷!2、在vmware上,把vmware-tools也装上3、用网络邻居mount -t smbfs -o username=张剑,password=""//swordzjj/nano2410 /root/.gnome-desktop/nano/4、把Nano2410AV2-SDK10.tgz和arm-linux-toolchains.tgz拷到/tmp 上tar xvzf Nano2410AV2-SDK10.tgz –C /tar xvzf arm-linux-toolchains.tgz -C /5、安装JRE1.5.0./jre-1_5_10-linux-i586-rpm.bin6、安装eclipse 3.2、cdt、汉化包tar zxvf eclipse-SDK-3.2.1-linux-gtk.tar.gz -C /opttar zxvf org.eclipse.cdt-3.1.1-linux.x86.tar.gz -C /optNLpack1-eclipse-SDK-3.2.1-gtk.zip /opt7、安装firefox-2.0tar zxvf firfox-2.0.0.1.tar -C /opt8、安装AdobeReaderrpm -i AdobeReader_chs-7.0.0-2.i386.rpm9、更新环境变量vi /etc/profile,# Path manipulationif [ `id -u` = 0 ]; thenpathmunge /sbinpathmunge /usr/sbinpathmunge /usr/local/sbinpathmunge /usr/local/arm/2.95.3/binpathmunge /usr/java/jre1.5.0_10/binfivi /etc/exports在最后加上:/opt/FriendlyARM/Nano2410A_v2/root_nfs*(rw,sync,no_root_squash)/opt/FriendlyARM/Nano2410A_V2/root_nfs是代表要作为Nano2410A_v2的根文件系统的共享目录;*代表所有的客户机都可以挂接此文件系统目录;rw代表客户机以读写许可来挂接它们的根文件系统;no_root_squash选项允许客户机以主机上的root身份挂接根文件系统。
eclips配置环境变量

eclips配置环境变量Eclipse是一款基于Java语言开发的集成开发环境,具有强大的插件功能和易用性,被广泛应用于Java开发中。
在使用Eclipse进行开发时,经常需要配置环境变量以满足开发需求。
本文将介绍如何在Eclipse中配置环境变量。
一、打开Eclipse需要打开Eclipse。
如果已经安装了Eclipse,可以直接在桌面或开始菜单中找到它并打开。
如果还没有安装,可以从官网下载并安装。
二、选择工作空间在Eclipse打开后,需要选择工作空间。
工作空间是Eclipse用来保存项目和设置的文件夹。
可以选择默认的工作空间,也可以选择自定义的工作空间。
三、打开“Run Configurations”在Eclipse中,可以通过“Run Configurations”来配置环境变量。
在Eclipse中,点击菜单栏的“Run”选项,然后选择“Run Configurations”。
四、选择需要配置的项目在“Run Configurations”窗口中,需要选择需要配置环境变量的项目。
可以在左侧的列表中找到需要配置的项目,并点击它。
五、点击“Environment”选项卡在“Run Configurations”窗口中,需要点击“Environment”选项卡。
在这个选项卡中,可以添加、编辑和删除环境变量。
六、添加环境变量在“Environment”选项卡中,可以通过点击“New”按钮来添加环境变量。
在弹出的窗口中,需要输入环境变量的名称和值,并点击“OK”按钮。
七、编辑环境变量在“Environment”选项卡中,可以通过点击需要编辑的环境变量,并在弹出的窗口中修改环境变量的值来编辑环境变量。
八、删除环境变量在“Environment”选项卡中,可以通过点击需要删除的环境变量,并点击“Remove”按钮来删除环境变量。
九、保存配置在完成环境变量的配置后,需要点击“Apply”或“Run”按钮来保存配置。
Eclipse For Java EE开发环境配置

Eclipse For Java EE开发环境配置一、开发工具准备安装1.Eclipse:到/downloads/下载Eclipse For java EE版本的Eclipse,本文档示例所使用的版本是Helios Service Release 2。
下载后解压即可。
2.JDK从/jdk6/下载适合的JDK6安装文件。
下载点击安装即可。
3.JBoss从/jbossas/downloads/从下载jboss-5.0.0.GA。
下载后解压即可。
4.Struts2从/download.cgi#struts20111下载当前最新struts2。
可选择struts-2.2.1.1-all.zip下载全部或仅下载struts-2.2.1.1-lib.zip。
5.Spring从/download/community下载Spring框架。
本示例使用当前最新的3.0.5.RELEASE。
一、Eclipse配置1.设置工作区:(1)编码:点击菜单Window -> Preferences 打开下图窗口:展开General,选择Workspace,在Text file encoding框中选择Other单选按钮后,在右边下拉框中选择你的文本编码方式。
示例中采用UTF-8.,如下图:设置好点击OK按钮即可。
再展开Web节点并选择HTML Files。
将HTML的编码格式也设置成UTF-8。
如下图:2.添加WEB容器(1)打开Servers视图。
Servers视图一般在右下方可找到,如果找不到则在可以通过下面方式打开:Window -> Show View -> Servers。
(2)打开后,在Servers视图中单击右键弹出右键菜单,点击New -> Server打开下图窗口:(3)由于示例采用jboss,所以展开JBoss节点并选中JBoss v5.0,点Next进入下一步,如图如果在JRE下拉框中找不jre6,则可点上面的Installed JRE preferences链接打开下面窗口点击Add...按键可添加你安装的jdk(添加操作略)。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
开发环境配置1、java环境
安装
本系统使用java7开发,版本如下:
配置
安装后需要配置环境变量,如下所示:
配置classpath,如下:
并在path中添加java7安装目录中的bin目录路径,如下所示:
检验是否安装成功,cmd进入命令行模式,输入java,出现如下画面表示安装java完成:
2、web容器
安装
本系统开发环境使用tomcat6及以上版本,“开发工具”目录提供了apache-tomcat-7.0.53.zip。
解压安装包到自己的电脑上,建议不要解压到中文目录下,老师的tomcat7放在了E盘根目录E:\apache-tomcat-7.0.53。
配置
网上有些安装教程提到需要配置CATALINA_HOME环境变量,此变量指向了tomcat 的目录,主要是为了方便tomcat运行使用,如果配置了,你的电脑上有多个tomcat目录时只能成功运行那个和CATALINA_HOME一致的tomcat,如果不配置,在你启动tomcat时它会自己确定tomcat目录,这里我们就不配置了。
运行
运行tomcat目录中的bin/startup.bat,启动tomcat,如果启动不起来就到logs查看错误日志,启动后有浏览器输入http://localhost:8080/,进入如下画面表示tomcat安装成功。
3、eclipse环境
eclipse安装
本系统开发使用eclipse-indigo进行开发,在“开发工具”目录中有eclipse-3.7-indigo 32位.zip 安装包。
解压安装包到固定位置,建议不要解压到中文目录,运行:eclipse.exe,初次运行会让你确定自己的工作区,工作区是你创建project工程的地方,选择一个容易操作到的目录作为你的工作区,建议工作区目录不要设在中文目录中。
Eclipse插件安装:
将“开发工具”目录的“eclipse-plugins”目录拷贝到自己的电脑上,“eclipse-plugins”目录中包括了三个插件,另将此目录的txt文件拷贝到eclipse目录中dropins目录下,并对每个
txt文件中的路径修改正确,指定插件文件夹位置。
例如:activiti插件的安装如下:
插件包括:
propedit
即java属性文件编辑器,使用插件后可以输入中文。
关于测试:可以新建一个properties文件,可以输入中文即说明此插件安装成功。
maven
即eclipse 与maven的整合插件,达到使用eclipse开发maven应用,出现以下界面说明maven插件安装成功:
点击:window->preferences
点击File->New->other
Activiti
即eclipse与activiti的整合插件,最主要的是可以在eclipse中通过插件绘制activiti的流程(bpmn)
出现如下界面即说明activiti插件安装成功:
点击:window->preferences
点击:File->new->other
配置:
Java环境配置:
编译版本:
选择java运行环境:
Server配置
配置web Server,本系统使用tomcat7作为web容器,需要配置tomcat Server,配置步骤如下:
添加tomcat运行环境
点击完成
添加Tomcat Server
显示Tomcat Server
配置tomcat
在上边红色框内加入java内存设置命令:
-Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m
Eclipse默认将工程部署至eclipse的目录中,目录层次较深不易操作,这里改到tomcat 自己的部署目录中。
注意:如果eclipse的tomcat已添加工程需要在eclipse中将tomcat下的工程全部移除后方可设置该项
配置完成,点击保存。
Properties插件安装
需求:我们在做“国际化”功能时,需要properties中文表示方式用unicode表示。
eclipse默认properties文件编辑器不方便查看中文,需要一个将unicode转化为中文的编辑器。
使用jp.gr.java_siy.app.propedit_5.3.3作为propertie编辑器插件。
将开发工具目录的:jp.gr.java_siy.app.propedit_5.3.3.zip解压,将解压目录里边的eclipse 目录名称重新命名为jp.gr.java_siy.app.propedit_5.3.3并拷贝到eclipse应用目录中的dropins下,拷贝后的目录结构如下:
重新启动eclipse,在工程中创建一个properties文件,打开输入中文看能否正常显示,正常显示则表示安装成功。
eclipse默认字符集
将eclipse默认字符集更改为utf-8
更改jsp文件的字符集:
Web工程测试
创建一个web工程测试tomcat是否可以使用。
创建动态web工程
新建一个jsp:
在tomcat中部署运行
重新部署:
Maven工程测试
新建一个maven工程:
选择maven Porject
下一步工程创建地址:
创建在默认工作区
下一步选择工程原型:
这里选择快速原型
下一步输入GAV:
Groupid:即项目
Artifactid:即模块
Version:即版本,snapshot是快照版本即开发中的版本,release即为发布版本。
完成
创建完成,左侧出现maven工程。
修改编译器版本为1.6:
双击打开上图中的pom.xml
加入如下:
<build>
<finalName>maventest</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
保存。
右键执行maven—update project
在出现的容器中点击“OK”
执行后再看左侧工程:
已改为javase 1.6
eclipse内存设置
为防止eclipse在启动运行时内存溢出,修改eclipse.ini文件添加如下:-Xms128m
-Xmx768m
-XX:permSize=64M
-XX:MaxPermSize=128M
eclipse字体修改
eclipse添加代码提示
在上边红色框内输入:.abcdefghijklmnopqrstuvwxyz。