IBMJava教程高级部分2-eclipse集成开发环境
- 格式:pdf
- 大小:1.30 MB
- 文档页数:31
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。
JavaWeb应⽤的开发环境配置1:第⼀是下载好Eclipse开发⼯具,这⾥不做叙述,⾃⾏下载安装。
2:使⽤Eclipse开发WEB项⽬,启动Eclipse,选择File--->new --->other--->Web--->Dynamic Web Project(动态Web项⽬),打开,如下图所⽰:然后之后如下所⽰然后之后打开New Dynamic Web Project(新建动态web项⽬)对话框,在该对话框的Project name(项⽬名称)⽂本框输⼊项⽬的名称,在Dynamic web module version(动态⽹页模块版本)下拉列表框中选择3.0选项。
其他选择默认即可。
然后单击next按钮,打开如下图所⽰,这⾥选择默认的配置即可。
然后单击next之后打开Configure web module settings.(配置web模块设置)对话框,如下图所⽰,我这⾥默认即可。
然后点击Finish之后如下:然后创建好的web项⽬如下图所⽰:3:创建jsp⽂件(也可以选择创建其他类⽂件等等,这⾥创建jsp⽂件),如下图所⽰:在Eclipse的项⽬资源管理器中,⿏标右击webcontent,可以直接选择jsp File⽂件,或者去Other⾥⾯选择其他的更多的⽂件类型。
然后打开如下图所⽰的界⾯,在File name起好名字,单击next。
然后就打开选择jsp模板的对话框,这⾥选择默认即可。
然后点击Finish按钮,完成jsp⽂件的创建,在项⽬资源管理器的WEB-INF节点下多了⼀个jsp⽂件。
同时,Eclipse会⾃动以默认的与jsp⽂件关联的编辑器将⽂件在右侧的编辑窗⼝中打开。
我刚创建好就报错Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path下⾯给出解决错误的⽅法。
Eclipse集成开发环境使用练习题参考答案Eclipse是一款功能强大的集成开发环境(IDE),广泛用于Java开发。
通过使用Eclipse,开发者可以减少编写代码的时间,提高开发效率,以下是一些Eclipse使用练习题的参考答案,希望能帮助你更好地掌握Eclipse的使用技巧。
练习题一:创建Java项目1. 打开Eclipse,点击菜单栏的「File」,选择「New」,然后选择「Java Project」。
2. 在弹出的对话框中,输入项目名称,例如「HelloWorld」,然后点击「Finish」。
练习题二:新建Java类并编写代码1. 在刚才创建的Java项目上右键,选择「New」,然后选择「Class」。
2. 在弹出的对话框中,输入类名称,例如「HelloWorld」,然后点击「Finish」。
3. 在打开的Java文件中,输入以下代码:```public class HelloWorld {public static void main(String[] args) {}}```练习题三:运行Java程序1. 右键点击刚才编写的Java文件,选择「Run As」,然后选择「Java Application」。
2. 在Eclipse的「Console」视图中,你将看到以下输出:```Hello, World!```练习题四:调试Java程序1. 在刚才创建的Java类中,将代码修改为以下内容:```public class HelloWorld {public static void main(String[] args) {int a = 5;int b = 0;int result = a / b;}}```2. 右键点击Java文件,选择「Debug As」,然后选择「Java Application」。
3. 在Eclipse的「Debug」视图中,你将看到程序在执行到除法操作时出现异常,并且Eclipse会自动暂停程序的执行。
3.2 Eclipse Java EE集成开发环境JSP开发环境主要包括JavaBean和Servlet等Java类的开发环境与JSP页面的开发环境,Java类的编译需要JDK的支持。
前面介绍了JSP的多个开发和应用平台,它们有各自的优点,也适合于不同的开发环境。
本书程序都是使用免费开源的强大工具平台开发和运行的,本书选择的软件是最新版的JDK1.7+Eclipse Java EE+Tomcat 7.0集成开发环境;经典版的JDK1.5+ Eclipse 3.2 +Tomcat 5.5以及MyEclipse8.6开发环境。
下面介绍它们的安装和配置。
3.2.1 安装和配置JDK在oracle公司的网站上可以免费下载JDK安装软件,下载网址是:/technetwork/java/index.html打开此网址,找到下载的位置,如图3-1所示。
选中Java SE 7 Update 17。
图3-1 选择要下载的软件Java SE 7 Update 17图3-2 选择JDK DOWNLOAD图3-3 jdk-7u17-windows-i586.exe要下载JDK的Windows版本,这里下载的是jdk-7u3-windows-i586.exe。
注意,选择Accept License Agreement后才可以下载。
下载完成后,直接双击下载软件即可执行安装。
按照安装指示进行即可。
安装过程如下:(1)欢迎使用Java SE Development Kit 7 Update 17安装向导,如图3-4所示。
图3-4安装向导(2)选择JDK的安装路径,单击“更改(A)”按钮可以选择JDK的安装路径,也可以使用默认安装路径,如图3-5所示。
图3-5 选择JDK安装路径(3)选择jre的安装路径,如图3-6所示。
图3-6 选择jre安装路径(4)安装进度,如图3-7所示。
图3-7 安装进度(5)安装成功,如图3-8所示。
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地址。
使用Eclipse进行Java应用程序开发的入门教程第一章:介绍Eclipse和Java开发环境Eclipse是一款流行的集成开发环境(IDE),可用于开发各种编程语言,包括Java。
它提供了强大的工具和功能,使Java开发变得更加高效和便捷。
1.1 Eclipse的安装首先,下载适用于Java开发的Eclipse版本。
安装过程相对简单,按照向导提示顺序执行即可完成。
确保选择Java开发工具(Java Development Tools,JDT)的安装。
1.2 JDK的安装和配置Eclipse需要Java Development Kit(JDK)才能编译和运行Java 代码。
确保已安装最新版本的JDK,并将其配置为Eclipse的默认JDK。
1.3 创建Java项目启动Eclipse后,选择"File -> New -> Java Project"来创建一个新的Java项目。
在弹出的对话框中,输入项目名称并选择所需的JDK版本。
点击"Finish"来创建项目。
第二章:Eclipse的基本功能和工作空间2.1 工作空间Eclipse使用工作空间(Workspace)来组织项目和资源文件。
在启动Eclipse时,会要求选择工作空间文件夹。
一个工作空间可以包含多个项目。
2.2 项目资源Eclipse的"Package Explorer"窗口显示项目中的所有文件和文件夹。
你可以在此窗口中创建、删除和管理项目资源。
2.3 编辑器Eclipse的编辑器是主要的编码区域,用于编写和编辑Java代码。
当你双击项目中的Java文件时,它会在编辑器中打开。
2.4 调试器Eclipse提供强大的调试功能,可帮助你发现和修复代码中的错误。
你可以设置断点、单步执行代码、查看变量的值等。
调试器是开发过程中非常有用的工具。
第三章:Java项目的创建和配置3.1 创建包和类在Eclipse的"Package Explorer"窗口中,右键点击项目,选择"New -> Package"来创建一个包。
快速提高编程技能的集成开发环境推荐一、引言编程技能在现代社会中变得越来越重要,并且对于从事软件开发、数据分析、人工智能等行业的人来说尤为关键。
而选择一个适合自己的集成开发环境(Integrated Development Environment,简称IDE)可以极大地提高编程效率和工作质量。
在本文中,我们将介绍一些常用的集成开发环境,以帮助开发者们快速提高他们的编程技能。
二、Java开发IDE推荐1. EclipseEclipse是一个广泛使用的Java开发IDE,它具有强大的功能和丰富的插件系统,可以满足不同开发者的需求。
它支持Java、C/C++、Python等多种编程语言,并且有很多用于Java开发的工具和插件。
例如,eclipse可以提供强大的代码编辑、代码自动完成功能,以及调试、测试功能等。
此外,Eclipse还支持团队合作开发,可以方便地进行版本控制和代码审查。
2. IntelliJ IDEAIntelliJ IDEA是一款功能强大的Java开发IDE,它提供了很多高级功能,能够帮助开发者提高生产效率。
该IDE支持丰富的智能代码提示和代码自动完成功能,并且具有强大的重构工具,可以轻松地重构代码结构。
IntelliJ IDEA还支持各种框架和库,并提供了强大的版本控制和调试工具。
此外,IntelliJ IDEA还有很多有用的插件,可以进一步扩展其功能。
三、Python开发IDE推荐1. PyCharmPyCharm是一款专为Python开发设计的IDE,它提供了智能代码提示、代码补全、代码分析等功能,可以提高开发效率。
PyCharm还具有强大的调试工具和单元测试支持,可以帮助开发者轻松调试和测试Python代码。
此外,PyCharm还支持大型项目的开发,具有版本控制和团队协作功能。
2. AnacondaAnaconda是一个流行的Python发行版,它包含了一系列常用的Python科学计算库和IDE。
软件开发环境与工具的高级介绍与使用教程第一章:软件开发环境的概念及重要性软件开发环境是指用于开发软件的各种工具、平台和框架的集合。
在软件开发过程中,选择适合的开发环境对于提高开发效率和质量至关重要。
一个好的开发环境能够帮助开发人员更好地组织代码、进行调试和测试,并提供各种功能和扩展性。
1.1 开发环境的组成一个典型的软件开发环境包括以下组成部分:集成开发环境(IDE)、代码编辑器、编译器、调试器、版本控制系统、构建工具等。
这些工具相互之间协同工作,提供强大的开发支持。
1.2 开发环境的重要性一个好的开发环境能够提高软件开发的效率和质量。
它可以帮助开发人员提供更快速、更准确的开发过程,并且提供了一系列强大的工具和功能。
同时,它还可以提供良好的调试和测试环境,有助于发现和解决软件中的各种问题。
第二章:常用的集成开发环境介绍与使用教程2.1 EclipseEclipse是一个非常流行的Java开发环境。
它提供了丰富的插件和工具,可以支持多种语言和平台的开发。
在Eclipse中,我们可以创建、编辑、编译和调试Java程序。
使用Eclipse可以大大提高Java开发的效率和质量。
2.2 Visual StudioVisual Studio是微软开发的集成开发环境,主要用于开发.NET 程序。
它提供了丰富的工具和功能,使开发人员能够更轻松地创建、编辑、调试和部署.NET应用程序。
Visual Studio还支持多种编程语言,如C#、等。
第三章:代码编辑器的高级介绍与使用教程3.1 Sublime TextSublime Text是一款轻量级但功能强大的代码编辑器。
它提供了丰富的插件和主题,支持多种编程语言和文件类型。
Sublime Text具有快速、稳定、可定制等特点,可以满足开发人员对代码编辑的各种需求。
3.2 Visual Studio CodeVisual Studio Code是微软推出的一款免费开源的代码编辑器。
搭建Eclipse+MyEclipse+tomcat开发环境开发J2EE的第一步一、安装JDK首先下载JDK 5.0(JDK 5.0的下载页面为:/j2se/1.5.0/download.jsp);然后运行JDK 5.0安装程序jdk-1_5_0_06-windows-i586-p.exe,安装过程中所有选项保持默认;最后配置JDK的环境变量:在“我的电脑”上点右键—>“属性”—>“高级”—> “环境变量(N)”。
新建系统变量JAVA_HOME:C:\Program Files\Java\jdk1.5.0_06;新建系统变量CLASSPATH:.;%JAVA_HOME%\lib;(注意:点号表示当前目录,不能省略)在系统变量Path的值的前面加入以下内容:%JAVA_HOME%\bin;(注意:这里的分号不能省略) 到这里,JDK安装完毕。
下面我们测试一下JDK是否安装成功:将以下内容复制到记事本中:public class HelloJAVA{public static void main(String srg[]){System.out.println("Hello JAVA!");}}另存为“HelloJAVA.java”(不含引号,下同),并保存到D盘根目录下。
在命令行依次输入下图中红线所标注的命令:如果出现上图红框中所标注的内容,则说明JDK安装成功!注意:如果以后要安装诸如Eclipse、Borland JBuilder、JCreator、IntelliJ IDEA等集成开发环境(IDE,Integrated Developm ent Environment),应该在IDE中编译运行一个简单的HelloWorld程序,以保证IDE可以识别出JDK的位置。
二、安装Tomcat首先下载jakarta-tomcat-5.0.30.zip,之所以下载免安装版的好处是可以使用多个Tomcat (jakarta-tomcat-5.0.30.zip的下载页面为:/tomcat/tomcat-5/v5.0.30/bin/);然后将jakarta-tomcat-5.0.30.zip直接解压到D盘根目录:最后配置Tomcat的环境变量:在“我的电脑”上点右键—>“属性”—>“高级”—> “环境变量(N)”。
JAVA集成开发环境----IntellijIDEA操作总结IDEA 全称 IntelliJ IDEA,是款优秀的 java语⾔开发的集成环境。
本⽂是对 IDEA 中常⽤配置的整理。
开始前需先准备环境,并激活。
本⽂基于:IntelliJ IDEA 2020.3.1(Ultimate Edition)注意IDEA 中没有⼯作空间 workspace 这个概念,IDEA 的设置分两类:默认配置 VS 当前项⽬配置默认配置:顶部导航栏 -> File -> New Projects Settings -> Settings for new projects / Structure for new projects当前项⽬配置:顶部导航栏 -> File -> Settings / Project Structure⼀. 项⽬结构配置File -> Project Structure)是 IDEA 中最重要的设置项,关乎到项⽬的运⾏1.1 Project Settings -> ProjectProject name:定义项⽬的名称;Project SDK:设置该项⽬使⽤的JDK,也可以在此处新添加其他版本的JDK;Project language level:这个和JDK的类似,区别在于,假如你设置了JDK1.8,却只⽤到1.6的特性,那么这⾥可以设置语⾔等级为1.6,这个是限定项⽬编译检查时最低要求的JDK特性;Project compiler output:项⽬中的默认编译输出总⽬录,实际上每个模块可以⾃⼰设置特殊的输出⽬录(Modules - (project) - Paths -Use module compile output path),所以这个设置有点鸡肋。
1.2 Project Settings -> ModulesIDEA 每个项⽬默认开⼀个窗⼝,即单⼦项⽬的形式。