Eclipse开发环境配置-indigo

合集下载

Eclipse IDE开发环境使用教程说明书

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配置

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报表安装手册(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环境搭建

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开发环境配置

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的基本使用教程(包括调试)

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++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语言开发环境

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目录下。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 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。

相关文档
最新文档