The days I walked with Eclipse

Source: Internet
Author: User
Tags java web tomcat server

   Love at first sightsophomore last semester, the first time to touch the Java Web. Teachers to help us understand the Java Web Environment from the bottom, we are not required to use any IDE, only Notepad.Well, the teacher is also good for me. A simple Java Web project requires at least 6 steps.Step One: Create a new project folder under Tomcat's WebApps folder, such as the project name is Studentmanager;Step Two: Create a new folder under the studentmanager directory web-inf, file student_mgr.html Step Three: create a new folder in the web-inf directory classes,lib, file The Web.xml,classes folder is used to store compiled Java files (compiled *.java command:javac *.java); Step four: Add the required jar package to the lib directory and add the compiled * to the classes directory. clsss file; Step Five: Configure the Web. xml file to add access to the servlet;Step six: Enter the URL of the item in the browser to access the Web site. in this slash and burn development environment, how I want to have a set of IDE, can help me to solve these repetitive tedious creation process. Well, eclipse is so, and when I need it most, it's so powerful that it's hard for you not to like it. gradually deepen I do not know why Java is so rare, but TGB have a training plan, must learn. NET to learn java. In use. NET development process, I found a lot of debugging techniques. For example, in VS, F5 is a debug run, F9 is to add/remove breakpoints, F10 is step over, F11 is execution by statement, F12 is jump to definition. At that time, I thought, Eclipse must have similar debugging skills, and then constantly groping, found in Eclipse, debug run, the program into the debug state, F5 is executed by the statement, F6 is the process of execution, F7 is to return to the original method execution, Ctrl+r is to execute to the specified column. What's up? , and vs quite like it!If you think the code format is not very cool in eclipse,ctrl+shift+f can help you quickly sort out the code format. If you do not respond after pressing, it may be and Sogou input method shortcut keys conflict, the solution: Formatting code shortcut keys in Eclipse ctrl+shift+f Invalid solution.   c trl+/: Comments/ Uncomment the check code, ctrl+d: Delete the current line,/+ * * Enter: Quick Add class or method comment, alt+/: Code smart Reminder, Ctrl+shift+o: Import related Jar package, Shift+alt+s: Generate Get/set, compose function, etc. < Span lang= "ZH-CN" >&NBSP;   If you are debugging Web project times with Eclipse:  "Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at localhost is already I n use. The server may already is running in another process, or a system process could be using the port. To-start this server need to stop the other process or change the port number (s). ", then the port is occupied by Tomcat, solution: Enter the life under DOS Order: netstat-nao|findstr " port number " to find the process ID that occupies the port, Then kill the process in Task Manager.     If a new Web project needs to be renamed, a 404 error is often reported when re-browsing the Web page. Solution: Rename the project name from a to B, select Project B, right-properties -->myeclipse-->web-->web context-root b; open project deployments add-->tomcat6.0-->ok     The comrades who have used Eclipse know that the default way to open HTML, JSP files, is quite slow. Solution: window-->preferences -->general-->editors--> fileassociations  select *.html myeclipse HTML Editor default. files added to eclipse are garbled? Don't worry, Solution:Window-->preferences--> search jsp-->encoding. Do not abandon This powerful Java ide--eclipse really impressed me. 工欲善其事, its prerequisite. Java is such a favorite, the Java IDE is quite a favorite. Eclipse witnessed the growth of my rookie, and it is my best answer.

The days I walked with Eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.