The days I walked with Eclipse

Source: Internet
Author: User

   Love at first sightsophomore last semester, the first time to touch the Java Web. To help us understand the Java Web execution environment from the bottom up, we are not able to use any IDE, just 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 directory under Tomcat's WebApps directory, for example, the project name is Studentmanager;Step Two: Create a new folder under the studentmanager folder web-inf, file student_mgr.html Step Three: create a new directory under the web-inf directory classes,lib, file The web.xml,classes directory is used to store compiled Java files (compiled *.java command:javac *.java); Step four: to the Lib folder to join the program to execute the required jar package, to the Classes folder to add the compiled * . clsss file; Step Five: Configure the Web. xml file to add access to the servlet;Step Six: Enter the appropriate URL for the project in the browser to access the Web site. in such a slash and burn development environment, how I want to have a set of Ides, can help me to solve these tedious creation process. Well, eclipse is so, and when I need it most, it's so hard that you don't like it. gradually deepen I do not know why Java is so rare, but TGB have a training plan, must learn. NET ability to learn java. In use. NET development process, I found a lot of debugging skills. For example, in vs. F5 is the debug run, F9 is the Add/remove breakpoint. F10 is a step-by-step operation, and F11 is run on a per-statement basis. F12 is a jump to definition. I thought at the time that eclipse must have similar debugging skills. So constantly groping, hair now in Eclipse, Debug run, the program into the debugging state, F5 is the statement run, F6 is run step by step, F7 is to return to the original method run, Ctrl+r is run to the specified column. What's it like ?Assuming that the code format is not very cool in eclipse,ctrl+shift+f can help you organize your code in a high-speed format. Assuming the press is not responding. may be and Sogou Input Method shortcut key conflict, Solution: Eclipse Format Code shortcut key Ctrl+shift+f the method of resolving the failure.Ctrl+/: Gaze/Cancel Gaze check code, ctrl+d: Delete current line,/+ * * Enter: High speed join class or method gaze, alt+/: Code smart Reminder, Ctrl+shift+o: Import related Jar package, Shift+alt+s: Generate Get/set, constituent functions and so on.

Suppose you debug Web project times with Eclipse: "Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at localhost is already in 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 " , locate the process ID that occupies port, and then kill the process in Task Manager.     Suppose a new Web project needs to be renamed, and you often report a 404 error when you browse the Web again. Workaround: Rename the project name from a to B, select item 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.

How to resolve:window-->preferences-->general-->editors-->fileassociationsselected*.html. Will bemyeclipse HTML Editorset toDefault.files added to eclipse are garbled? Don't be afraid. Workaround:Window-->preferences--> search jsp-->encoding. Do not abandon This powerful Java ide--eclipse really impressed me.

工欲善其事, its prerequisite. is so popular with Java. The Java IDE is also quite popular. Eclipse witnessed the growth of my rookie, and it is my best answer.

The days I walked with Eclipse

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.